diff options
| author | nexec <nexec@users.noreply.github.com> | 2023-07-06 01:18:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-06 00:18:44 +0200 |
| commit | 8407a9af0a333ade66d4deff7ef654a4594fe58f (patch) | |
| tree | 12f1fd9ca19de10f0fb1a0847bb3cb6ea1679e16 /src/managers/EventManager.cpp | |
| parent | c4f288582b5ed18f3cc5c4d477679c38f93c3674 (diff) | |
Close socket2 client descriptor on hangup (#2654)
Diffstat (limited to 'src/managers/EventManager.cpp')
| -rw-r--r-- | src/managers/EventManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index b2c3adf3..9d55f423 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -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) { |
