Peter M. Groen
/
FlashMQ
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
f8944b0624adcf0f2daa7a2e9d5f95f5362fd664
Authored by
Wiebe Cazemier
2020-12-22 21:25:09 +0100
1 parent
962dec5e
Handle epoll errors
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
mainapp.cpp
mainapp.cpp
View file @
f8944b0
...
...
@@ -85,6 +85,10 @@ void do_thread_work(ThreadData *threadData)
85
85
continue;
86
86
}
87
87
}
88
+ if (cur_ev.events & (EPOLLERR | EPOLLHUP))
89
+ {
90
+ threadData->removeClient(client);
91
+ }
88
92
}
89
93
catch(std::exception &ex)
90
94
{
...
...