Stop the ipc server on terminating
authorSunwook Bae <sunwook45.bae@samsung.com>
Tue, 2 Apr 2013 01:11:56 +0000 (10:11 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Tue, 2 Apr 2013 01:11:56 +0000 (10:11 +0900)
Change-Id: I6d467980bd8a180cc4c8cc28503b5e9d3eb21982
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/FIo_ChannelServiceStub.cpp
src/FIo_MessagePortStub.cpp

index f9abe4a..628dff2 100644 (file)
@@ -52,7 +52,11 @@ _ChannelServiceStub::_ChannelServiceStub(void)
 
 _ChannelServiceStub::~_ChannelServiceStub(void)
 {
-       delete __pIpcServer;
+       if (__pIpcServer != null)
+       {
+               __pIpcServer->Stop();
+               delete __pIpcServer;
+       }
 }
 
 result
index 0c06d06..4da0287 100644 (file)
@@ -36,13 +36,6 @@ using namespace Tizen::Base::Runtime;
 using namespace Tizen::Io;
 using namespace Tizen::App;
 
-static void 
-ConvertBundleToMap(const char *pKey, const int type, const bundle_keyval_t *pVal, void *pData)
-{
-       SysLog(NID_IO, "CB key = %s", pKey);
-
-}
-
 _MessagePortStub::_MessagePortStub(void)
        : __pIpcServer(null)
        , __pService(null)
@@ -52,7 +45,11 @@ _MessagePortStub::_MessagePortStub(void)
 
 _MessagePortStub::~_MessagePortStub(void)
 {
-       delete __pIpcServer;
+       if (__pIpcServer != null)
+       {
+               __pIpcServer->Stop();
+               delete __pIpcServer;
+       }
 }
 
 result