Author: titmuss
Date: Tue Jan 29 15:49:09 2008
New Revision: 1684
URL: http://svn.slimdevices.com?rev=1684&root=Jive&view=rev
Log:
Bug: 6787
Description:
I don't think this is needed but when testing SlimServer:reconnect() it did
leave the server disconnected once.
Modified:
branches/7.0/jive/src/pkg/jive/share/jive/net/Comet.lua
Modified: branches/7.0/jive/src/pkg/jive/share/jive/net/Comet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/jive/net/Comet.lua?rev=1684&root=Jive&r1=1683&r2=1684&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/jive/net/Comet.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/jive/net/Comet.lua Tue Jan 29 15:49:09
2008
@@ -780,8 +780,12 @@
end
elseif event.channel == '/meta/disconnect' then
if event.successful then
- self.clientId = nil
- _state(self, UNCONNECTED)
+ -- we may have started CONNECTING again, ignore
+ -- disconnects if we are in the wrong state
+ if self.state == UNCONNECTING then
+ self.clientId = nil
+ _state(self, UNCONNECTED)
+ end
else
return _handleAdvice(self)
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins