mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: monitor exit
This commit is contained in:
@@ -356,12 +356,12 @@ skynet_queryname(struct skynet_context * context, const char * name) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
handle_exit(struct skynet_context * context, uint32_t handle) {
|
handle_exit(struct skynet_context * context, uint32_t handle) {
|
||||||
if (G_NODE.monitor_exit) {
|
|
||||||
skynet_send(context, handle, G_NODE.monitor_exit, PTYPE_CLIENT, 0, NULL, 0);
|
|
||||||
}
|
|
||||||
if (handle == 0) {
|
if (handle == 0) {
|
||||||
handle = context->handle;
|
handle = context->handle;
|
||||||
}
|
}
|
||||||
|
if (G_NODE.monitor_exit) {
|
||||||
|
skynet_send(context, handle, G_NODE.monitor_exit, PTYPE_CLIENT, 0, NULL, 0);
|
||||||
|
}
|
||||||
skynet_handle_retire(handle);
|
skynet_handle_retire(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user