mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/gtk2/gui/guiCom.ml


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/gtk2/gui/guiCom.ml
Date: Sat, 12 Nov 2005 06:16:37 -0500

Index: mldonkey/src/gtk2/gui/guiCom.ml
diff -u mldonkey/src/gtk2/gui/guiCom.ml:1.3 mldonkey/src/gtk2/gui/guiCom.ml:1.4
--- mldonkey/src/gtk2/gui/guiCom.ml:1.3 Thu Apr  7 16:02:50 2005
+++ mldonkey/src/gtk2/gui/guiCom.ml     Sat Nov 12 11:16:36 2005
@@ -56,13 +56,14 @@
 
 let connection = ref None
 
-let disconnect gui reason = 
+let disconnect gui reason =
   match !connection with
     None -> ()
   | Some sock ->
+      when_disconnected gui;
       TcpBufferedSocket.close sock reason;
-      connection := None;
-      when_disconnected gui
+      connection := None
+
 
 let send t =
   match !connection with




reply via email to

[Prev in Thread] Current Thread [Next in Thread]