add checking FlagCreate() of CUsbConnectionListener 01/38001/1
authorJehun Lim <jehun.lim@samsung.com>
Thu, 9 Apr 2015 10:27:37 +0000 (19:27 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Thu, 9 Apr 2015 10:27:37 +0000 (19:27 +0900)
Change-Id: I65a36640272a3905f697200f0b728e93a27a651b
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/mgr/usb.cpp

index 88144f9..7fbc5e3 100644 (file)
@@ -89,6 +89,9 @@ void CUsb::GetConnected(void)
        int count;
        SUsbHostDeviceInfo devInfo;
 
+       if (!CUsbConnectionListener::FlagCreate())
+               return;
+
        count = ConnectionCount();
        for (int i = 0; i < count; i++) {
                GetConnectedDevInfo(i, &devInfo);
@@ -101,5 +104,3 @@ void CUsb::OnStatusChanged(SUsbHostDeviceInfo *changedDevice,
 {
        m->conCb.cb(m->conCb.cookie, status, (void *)changedDevice);
 }
-
-