Close the socket correctly.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 5 Aug 2013 17:16:31 +0000 (19:16 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 8 Aug 2013 00:15:59 +0000 (02:15 +0200)
src/main/java/net/pterodactylus/irc/Connection.java

index f3f41f0..336fdae 100644 (file)
@@ -748,6 +748,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic
                public void close() throws IOException {
                        Closeables.close(outputStream, true);
                        Closeables.close(inputStreamReader, true);
+                       Closeables.close(inputStream, true);
                }
 
        }