Close socket2 client descriptor on hangup (#2654)

This commit is contained in:
nexec
2023-07-06 01:18:44 +03:00
committed by GitHub
parent c4f288582b
commit 8407a9af0a

View File

@@ -30,6 +30,8 @@ int fdHandleWrite(int fd, uint32_t mask, void* data) {
it++;
}
}
close(fd);
};
if (mask & WL_EVENT_ERROR || mask & WL_EVENT_HANGUP) {