Add ScopedGMainLoop for gmainloop 02/145302/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Tue, 22 Aug 2017 04:56:19 +0000 (13:56 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Tue, 22 Aug 2017 04:57:11 +0000 (13:57 +0900)
Change-Id: Ie45393f7d1c7c3c99fff3835f12df14be90cbfa2
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
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 db3af1a..54ee475 100644 (file)
@@ -58,7 +58,7 @@ Server::~Server()
 void Server::run()
 {
        // Prepare execution environment
-       service->start(true);
+       service->start();
 }
 
 void Server::terminate()