Add ScopedGMainloop 59/155359/1
authorLee Sung Jun <sjun221.lee@samsung.com>
Fri, 13 Oct 2017 04:44:27 +0000 (13:44 +0900)
committerLee Sung Jun <sjun221.lee@samsung.com>
Fri, 13 Oct 2017 04:44:27 +0000 (13:44 +0900)
Change-Id: Ic00fd75d080dca3dbf74af83ef2e70900e609855
Signed-off-by: Lee Sung Jun <sjun221.lee@samsung.com>
server/main.cpp

index 8644394..4698cb2 100644 (file)
@@ -25,6 +25,8 @@
 #include <stdexcept>
 #include <memory>
 
+#include <klay/gmainloop.h>
+
 #include "server.h"
 
 void signalHandler(int signum)
@@ -38,6 +40,7 @@ int main(int argc, char *argv[])
        ::signal(SIGINT, signalHandler);
 
        try {
+               ScopedGMainLoop gmainloop;
                DevicePolicyManager manager;
 
                manager.loadManagedClients();