Add ScopedGMainLoop for gmainloop 03/145303/2
authorSungbae Yoo <sungbae.yoo@samsung.com>
Tue, 22 Aug 2017 03:01:54 +0000 (12:01 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 23 Aug 2017 09:19:33 +0000 (09:19 +0000)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I85a68c6180cc4f27fe1c96cf048b2bcbe28eadee

server/main.cpp
server/server.cpp

index 448df58..8c15275 100644 (file)
@@ -25,6 +25,8 @@
 #include <iostream>
 #include <stdexcept>
 
+#include <klay/gmainloop.h>
+
 #include "server.h"
 
 void signalHandler(int signum)
@@ -39,6 +41,7 @@ int main(int argc, char *argv[])
        ::umask(0);
 
        try {
+               ScopedGMainLoop gmainloop;
                Server server;
                server.run();
        } catch (std::exception &e) {
index dc4b51c..c5824b0 100644 (file)
@@ -73,7 +73,7 @@ Server::~Server()
 void Server::run()
 {
        // Prepare execution environment
-       service->start(true);
+       service->start();
 }
 
 void Server::terminate()