bugfix: message queue support multi parm

This commit is contained in:
云风
2013-12-12 21:44:11 +08:00
parent c07f4df172
commit 6ea5a03996

View File

@@ -12,7 +12,7 @@ skynet.register_protocol {
pack = skynet.pack,
unpack = skynet.unpack,
dispatch = function(session, from, ...)
table.insert(message_queue, {..., session = session, addr = from})
table.insert(message_queue, {session = session, addr = from, ... })
if thread_id then
skynet.wakeup(thread_id)
thread_id = nil