[Tkabber-dev] [tclxmpp commit] r34 - in trunk: . xmpp

codesite-noreply at google.com codesite-noreply at google.com
Sun Oct 19 10:44:18 MSD 2008


Author: sgolovan
Date: Sat Oct 18 23:44:09 2008
New Revision: 34

Modified:
    trunk/ChangeLog
    trunk/xmpp/xmpp.tcl

Log:
	* xmpp/xmpp.tcl: Fixed race condition where transport was already
	  closed, but was tried to send packets.


Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Oct 18 23:44:09 2008
@@ -1,3 +1,8 @@
+2008-10-19  Sergei Golovan  <sgolovan at nes.ru>
+
+	* xmpp/xmpp.tcl: Fixed race condition where transport was already
+	  closed, but was tried to send packets.
+
  2008-10-18  Sergei Golovan  <sgolovan at nes.ru>

  	* xmpp/jid.tcl: Added default resource value (empty string).

Modified: trunk/xmpp/xmpp.tcl
==============================================================================
--- trunk/xmpp/xmpp.tcl	(original)
+++ trunk/xmpp/xmpp.tcl	Sat Oct 18 23:44:09 2008
@@ -952,6 +952,7 @@

              catch {
                  transport::use $state(transport) close
+                unset state(transport)
              }

              CallBack $xlib disconnect
@@ -998,6 +999,7 @@
              catch {
                  closeStream $xlib
                  transport::use $state(transport) close
+                unset state(transport)
              }

              ClearState $xlib
@@ -1039,7 +1041,8 @@
      set state(status) disconnected

      # connect
-    array unset state transport
+    # This variable is unset in [disconnect] or [ForcedDisconnect]
+    #array unset state transport

      # openStream
      array unset state server


More information about the Tkabber-dev mailing list