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 448df58f939cfb03fe18566301258a1daea1ad5d..8c152753e761d17235b542b32ef1858d4d61bc95 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 dc4b51c3e9dbf36a95547c0e417ae14e8b68f255..c5824b0f4ff0b37d97496ae498b22aa7aa510b28 100644 (file)
@@ -73,7 +73,7 @@ Server::~Server()
 void Server::run()
 {
        // Prepare execution environment
-       service->start(true);
+       service->start();
 }
 
 void Server::terminate()