mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
throw an error only session !=0
This commit is contained in:
@@ -402,7 +402,9 @@ _remote_send_handle(struct harbor *h, uint32_t source, uint32_t destination, int
|
||||
_send_remote(context, fd, msg,sz,&cookie);
|
||||
} else {
|
||||
// throw an error return to source
|
||||
skynet_send(context, destination, source, PTYPE_RESERVED_ERROR, session, NULL, 0);
|
||||
if (session != 0) {
|
||||
skynet_send(context, destination, source, PTYPE_RESERVED_ERROR, session, NULL, 0);
|
||||
}
|
||||
skynet_error(context, "Drop message to harbor %d from %x to %x (session = %d, msgsz = %d)",harbor_id, source, destination,session,(int)sz);
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user