mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
See #1317
This commit is contained in:
@@ -1687,7 +1687,7 @@ clear_closed_event(struct socket_server *ss, struct socket_message * result, int
|
|||||||
struct event *e = &ss->ev[i];
|
struct event *e = &ss->ev[i];
|
||||||
struct socket *s = e->s;
|
struct socket *s = e->s;
|
||||||
if (s) {
|
if (s) {
|
||||||
if (socket_invalid(s, id)) {
|
if (socket_invalid(s, id) && s->id == id) {
|
||||||
e->s = NULL;
|
e->s = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user