[Tkabber-dev] [tclxmpp] r169 committed - * xmpp/bosh.tcl: Fixed sending of the terminate stream request.

tclxmpp at googlecode.com tclxmpp at googlecode.com
Wed Dec 4 09:47:26 MSK 2013


Revision: 169
Author:   sgolovan
Date:     Wed Dec  4 05:47:11 2013 UTC
Log:      	* xmpp/bosh.tcl: Fixed sending of the terminate stream request.

http://code.google.com/p/tclxmpp/source/detail?r=169

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

=======================================
--- /trunk/ChangeLog	Wed Dec  4 04:24:36 2013 UTC
+++ /trunk/ChangeLog	Wed Dec  4 05:47:11 2013 UTC
@@ -3,6 +3,8 @@
  	* xmpp/bosh.tcl: Reduced empty packets polling frequency. Fixed
  	  attributes list on rescheduling.

+	* xmpp/bosh.tcl: Fixed sending of the terminate stream request.
+
  2013-12-03  Sergei Golovan  <sgolovan at nes.ru>

  	* xmpp/bosh.tcl: Initially implemented BOSH (XEP-0124 and XEP-0206)
=======================================
--- /trunk/xmpp/bosh.tcl	Wed Dec  4 04:24:36 2013 UTC
+++ /trunk/xmpp/bosh.tcl	Wed Dec  4 05:47:11 2013 UTC
@@ -854,9 +854,9 @@
              return
          }
          default {
-            if {($state(queries) >= $state(requests) && \
-                    ![string equal [::xmpp::xml::getAttr $attrs type]  
terminate]) || \
-                ($state(queries) > 0 && [string equal  
$state(outdata) ""])} {
+            if {![string equal [::xmpp::xml::getAttr $attrs type]  
terminate] && \
+                ($state(queries) >= $state(requests) || \
+                ($state(queries) > 0 && [string equal  
$state(outdata) ""]))} {
                  Debug $token 2 RESCHEDULING

                  after cancel $state(id)


More information about the Tkabber-dev mailing list