fix invalid packet

This commit is contained in:
yihaoDeng 2022-08-18 09:22:00 +08:00
parent 66f6dcddb8
commit e7e6a4c7e4
1 changed files with 3 additions and 0 deletions

View File

@ -284,6 +284,9 @@ void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
}
}
return;
} else {
destroyConn(conn, true);
return;
}
}
if (nread == 0) {