mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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;
|
int s = 0;
|
||||||
while(!skynet_mq_pop(q, &msg)) {
|
while(!skynet_mq_pop(q, &msg)) {
|
||||||
++s;
|
++s;
|
||||||
drop_func(ud, &msg);
|
drop_func(&msg, ud);
|
||||||
}
|
}
|
||||||
_release(q);
|
_release(q);
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Reference in New Issue
Block a user