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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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