Break instead of returning.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / Connection.java
index 762ba02..aa28710 100644 (file)
@@ -55,7 +55,7 @@ public abstract class Connection implements Runnable {
                                byte[] buffer = source.get(bufferSize());
                                feed(buffer);
                        } catch (IOException e) {
-                               return;
+                               break;
                        }
                }
        }