mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
bugfix: ud is the second parm
This commit is contained in:
@@ -222,7 +222,7 @@ _drop_queue(struct message_queue *q, message_drop drop_func, void *ud) {
|
||||
int s = 0;
|
||||
while(!skynet_mq_pop(q, &msg)) {
|
||||
++s;
|
||||
drop_func(ud, &msg);
|
||||
drop_func(&msg, ud);
|
||||
}
|
||||
_release(q);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user