aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/barrier/ServerApp.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-10-05 21:10:01 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-10-05 21:10:01 -0400
commitdff8b887edf10407f22aaab9d147948cd5491f0a (patch)
tree14456ec6e2161ab1146e0bd9a2c9063fd56f87b4 /src/lib/barrier/ServerApp.cpp
parent81b2a927d50def6c2643db51394a170593d1db85 (diff)
New upstream version 2.3.2+dfsgupstream/2.3.2+dfsg
Diffstat (limited to 'src/lib/barrier/ServerApp.cpp')
-rw-r--r--src/lib/barrier/ServerApp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/barrier/ServerApp.cpp b/src/lib/barrier/ServerApp.cpp
index fbb5092..318673c 100644
--- a/src/lib/barrier/ServerApp.cpp
+++ b/src/lib/barrier/ServerApp.cpp
@@ -302,8 +302,8 @@ void
ServerApp::stopRetryTimer()
{
if (m_timer != NULL) {
+ m_events->removeHandler(Event::kTimer, m_timer);
m_events->deleteTimer(m_timer);
- m_events->removeHandler(Event::kTimer, NULL);
m_timer = NULL;
}
}
@@ -713,8 +713,7 @@ ServerApp::mainLoop()
{
// create socket multiplexer. this must happen after daemonization
// on unix because threads evaporate across a fork().
- SocketMultiplexer multiplexer;
- setSocketMultiplexer(&multiplexer);
+ setSocketMultiplexer(std::make_unique<SocketMultiplexer>());
// if configuration has no screens then add this system
// as the default