1
This commit is contained in:
1 parent
6ee030ca7c
commit
01dbd76834
1 file changed
+1
@@ -164,6 +164,7 @@ static void read_cb(socket_t sock, void* arg) {
|
||||
tc->fin_remote = 1;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_SOCKET, "tcp_io: FIN fd=%d", (int)tc->sock);
|
||||
uasync_set_socket_read(tc->ua, tc->socket_id, 0);
|
||||
queue_waiter_cancel(tc->read_queue, &tc->read_waiter);
|
||||
if (tc->read_queue->count == 0) {
|
||||
if (tc->on_fin) tc->on_fin(tc, tc->arg);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user