mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
调整格式
This commit is contained in:
@@ -135,7 +135,7 @@ _ctrl(struct gate * g, const void * msg, int sz) {
|
|||||||
skynet_socket_start(ctx, g->listen_id);
|
skynet_socket_start(ctx, g->listen_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (memcmp(command, "close", i) == 0) {
|
if (memcmp(command, "close", i) == 0) {
|
||||||
if (g->listen_id >= 0) {
|
if (g->listen_id >= 0) {
|
||||||
skynet_socket_close(ctx, g->listen_id);
|
skynet_socket_close(ctx, g->listen_id);
|
||||||
g->listen_id = -1;
|
g->listen_id = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user