bugfix: ud is the second parm

This commit is contained in:
Cloud Wu
2014-05-06 14:45:24 +08:00
parent 6a6d9db54d
commit 0c4e2450a7

View File

@@ -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;