mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fix #793
This commit is contained in:
@@ -712,6 +712,12 @@ skynet_send(struct skynet_context * context, uint32_t source, uint32_t destinati
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (destination == 0) {
|
if (destination == 0) {
|
||||||
|
if (data) {
|
||||||
|
skynet_error(context, "Destination address can't be 0");
|
||||||
|
skynet_free(data);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
if (skynet_harbor_message_isremote(destination)) {
|
if (skynet_harbor_message_isremote(destination)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user