Author: richard
Date: Wed Mar  4 03:56:02 2009
New Revision: 4685

URL: http://svn.slimdevices.com/jive?rev=4685&view=rev
Log:
Bug: N/A
Description:
Fix to slimproto.


Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SlimProto.lua

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SlimProto.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SlimProto.lua?rev=4685&r1=4684&r2=4685&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SlimProto.lua 
(original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SlimProto.lua Wed Mar  
4 03:56:02 2009
@@ -542,7 +542,7 @@
 -- Sent packet. Returns false is the connection is disconnected and the
 -- packet can't be sent, otherwise it returns true.
 function send(self, packet)
-       if self.state == UNCONNECTED then
+       if self.state ~= CONNECTED then
                return false
        end
 
@@ -604,6 +604,7 @@
        log:info("connection error: ", reason, ", reconnecting in ", (interval 
/ 1000), " seconds")
 
        self:disconnect()
+
        self.state = CONNECTING
        self.reconnectTimer:restart(interval)
 end

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

Reply via email to