only fire connection-closed event once
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 12 May 2008 16:44:08 +0000 (16:44 +0000)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 12 May 2008 16:44:08 +0000 (16:44 +0000)
git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@851 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/fcp/FcpConnection.java

index d7ed4bc..d1a1be7 100644 (file)
@@ -831,8 +831,8 @@ public class FcpConnection implements Closeable {
                if (connectionHandler != null) {
                        connectionHandler.stop();
                        connectionHandler = null;
+                       fireConnectionClosed(throwable);
                }
-               fireConnectionClosed(throwable);
        }
 
        //