mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
remove error message: invalid socket
This commit is contained in:
@@ -198,7 +198,6 @@ static void
|
|||||||
cmd_close(struct skynet_context * ctx, struct socket_pool *p, int id, int session, uint32_t source) {
|
cmd_close(struct skynet_context * ctx, struct socket_pool *p, int id, int session, uint32_t source) {
|
||||||
struct socket * s = &p->s[id % p->cap];
|
struct socket * s = &p->s[id % p->cap];
|
||||||
if (id != s->id) {
|
if (id != s->id) {
|
||||||
skynet_error(ctx, "%x close invalid socket %d", source, id);
|
|
||||||
reply(ctx, source, session, "invalid", -1);
|
reply(ctx, source, session, "invalid", -1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user