summaryrefslogtreecommitdiff
path: root/src/common/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/service.cpp')
-rw-r--r--src/common/service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/service.cpp b/src/common/service.cpp
index 6f3c46c..0c14dc2 100644
--- a/src/common/service.cpp
+++ b/src/common/service.cpp
@@ -65,6 +65,7 @@ void Service::start()
void Service::stop()
{
LogInfo("Service stop!");
+ m_loop.stop();
}
void Service::setNewConnectionCallback(const ConnCallback &/*callback*/)
@@ -85,7 +86,7 @@ void Service::setNewConnectionCallback(const ConnCallback &/*callback*/)
*/
m_loop.addEventSource(fd, EPOLLIN | EPOLLHUP | EPOLLRDHUP,
- [ &, fd](uint32_t event) {
+ [&, fd](uint32_t event) {
LogDebug("read event comes in to fd[" << fd << "]");
if (m_connectionRegistry.count(fd) == 0)