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

codesite-noreply at google.com codesite-noreply at google.com
Sun Oct 19 14:49:38 MSD 2008


Author: sgolovan
Date: Sun Oct 19 03:48:36 2008
New Revision: 36

Modified:
    trunk/ChangeLog
    trunk/xmpp/tcp.tcl
    trunk/xmpp/tls.tcl
    trunk/xmpp/zlib.tcl

Log:
	* xmpp/tcp.tcl, xmpp/tls.tcl, xmpp/zlib.tcl: Removed unnecessary error
	  hidings by catch.


Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sun Oct 19 03:48:36 2008
@@ -11,6 +11,9 @@
  	  call which now can't be executed twice (one time on the end of
  	  strteam, and another time on the closure of the socket).

+	* xmpp/tcp.tcl, xmpp/tls.tcl, xmpp/zlib.tcl: Removed unnecessary error
+	  hidings by catch.
+
  2008-10-18  Sergei Golovan  <sgolovan at nes.ru>

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

Modified: trunk/xmpp/tcp.tcl
==============================================================================
--- trunk/xmpp/tcp.tcl	(original)
+++ trunk/xmpp/tcp.tcl	Sun Oct 19 03:48:36 2008
@@ -428,8 +428,7 @@
      variable $token
      upvar 0 $token state

-    set msg ""
-    catch {set msg [read $state(sock)]}
+    set msg [read $state(sock)]

      ::xmpp::xml::parser $state(parser) parse $msg


Modified: trunk/xmpp/tls.tcl
==============================================================================
--- trunk/xmpp/tls.tcl	(original)
+++ trunk/xmpp/tls.tcl	Sun Oct 19 03:48:36 2008
@@ -527,8 +527,7 @@
      variable $token
      upvar 0 $token state

-    set msg ""
-    catch {set msg [read $state(sock)]}
+    set msg [read $state(sock)]

      ::xmpp::xml::parser $state(parser) parse $msg


Modified: trunk/xmpp/zlib.tcl
==============================================================================
--- trunk/xmpp/zlib.tcl	(original)
+++ trunk/xmpp/zlib.tcl	Sun Oct 19 03:48:36 2008
@@ -469,11 +469,8 @@
      variable $token
      upvar 0 $token state

-    set msg ""
-    catch {
-        fconfigure $state(sock) -flush input
-        set msg [read $state(sock)]
-    }
+    fconfigure $state(sock) -flush input
+    set msg [read $state(sock)]

      ::xmpp::xml::parser $state(parser) parse $msg



More information about the Tkabber-dev mailing list