Fix some messy shutdown.
This commit is contained in:
@@ -50,7 +50,10 @@ void peer_cleanup() {
|
||||
}
|
||||
|
||||
void peer_shutdown(int __attribute__((unused)) signal) {
|
||||
if (peer_shutdown_fd != -1) {
|
||||
assert(!close(peer_shutdown_fd));
|
||||
peer_shutdown_fd = -1;
|
||||
}
|
||||
}
|
||||
|
||||
void peer_epoll_add(struct peer *peer, uint32_t events) {
|
||||
|
||||
Reference in New Issue
Block a user