mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: message queue support multi parm
This commit is contained in:
@@ -12,7 +12,7 @@ skynet.register_protocol {
|
|||||||
pack = skynet.pack,
|
pack = skynet.pack,
|
||||||
unpack = skynet.unpack,
|
unpack = skynet.unpack,
|
||||||
dispatch = function(session, from, ...)
|
dispatch = function(session, from, ...)
|
||||||
table.insert(message_queue, {..., session = session, addr = from})
|
table.insert(message_queue, {session = session, addr = from, ... })
|
||||||
if thread_id then
|
if thread_id then
|
||||||
skynet.wakeup(thread_id)
|
skynet.wakeup(thread_id)
|
||||||
thread_id = nil
|
thread_id = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user