msg here never be nil

This commit is contained in:
云风
2012-12-28 10:57:02 +08:00
parent 6bea883dbf
commit 193a180c73

View File

@@ -148,7 +148,7 @@ skynet.register_protocol {
id = 3,
pack = function(...) return ... end,
unpack = function(msg,sz)
if msg == nil then
if sz == 0 then
skynet.timeout(0, reconnect)
return
end