mirror of
https://github.com/schoebel/mars
synced 2024-12-20 05:40:52 +00:00
server: safeguard unexpected socket destruction
This commit is contained in:
parent
03876c40eb
commit
a505a391b5
@ -529,6 +529,10 @@ int handler_thread(void *data)
|
||||
goto clean_unlock;
|
||||
}
|
||||
brick_msleep(200);
|
||||
if (!mars_socket_is_alive(sock)) {
|
||||
status = -ECONNABORTED;
|
||||
goto clean_unlock;
|
||||
}
|
||||
}
|
||||
|
||||
/* New protocol.
|
||||
|
Loading…
Reference in New Issue
Block a user