push message back to queue before harbor connect to master

This commit is contained in:
云风
2013-09-10 18:09:04 +08:00
parent fc1710826d
commit fd67d2f968
2 changed files with 21 additions and 2 deletions

View File

@@ -552,7 +552,11 @@ skynet_command(struct skynet_context * context, const char * cmd , const char *
void
skynet_forward(struct skynet_context * context, uint32_t destination) {
assert(context->forward == 0);
context->forward = destination;
if (destination == 0) {
context->forward = context->handle;
} else {
context->forward = destination;
}
}
static void