mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:29:49 +01:00
Close socket2 client descriptor on hangup (#2654)
This commit is contained in:
parent
c4f288582b
commit
8407a9af0a
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue