Break instead of returning.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Mar 2013 00:50:31 +0000 (01:50 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Mar 2013 00:50:31 +0000 (01:50 +0100)
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;
                        }
                }
        }