Author: titmuss
Date: Tue Jan 22 12:15:17 2008
New Revision: 1556

URL: http://svn.slimdevices.com?rev=1556&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix crasher on network disconnect.


Modified:
    branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua

Modified: branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
URL: 
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua?rev=1556&root=Jive&r1=1555&r2=1556&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/jive/net/SocketHttp.lua Tue Jan 22 
12:15:17 2008
@@ -788,13 +788,17 @@
        -- assumption is sending and receiving queries are never the same
        if self.t_httpSending then
                local errorSink = self.t_httpSending:t_getResponseSink()
-               errorSink(nil, err)
+               if errorSink then
+                       errorSink(nil, err)
+               end
                self.t_httpSending = nil
        end
 
        if self.t_httpReceiving then
                local errorSink = self.t_httpReceiving:t_getResponseSink()
-               errorSink(nil, err)
+               if errorSink then
+                       errorSink(nil, err)
+               end
                self.t_httpReceiving = nil
        end
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to