expend the retry time to register the contact change CB.
authorKeebum Kim <keebum.kim@samsung.com>
Fri, 30 Aug 2013 08:33:03 +0000 (17:33 +0900)
committerKeebum Kim <keebum.kim@samsung.com>
Fri, 30 Aug 2013 08:33:03 +0000 (17:33 +0900)
utils/MsgContact.cpp

index 1fcb514..0c2399e 100755 (executable)
@@ -93,13 +93,13 @@ msg_error_t MsgInitContactSvc(MsgContactChangeCB cb)
 {
        msg_error_t err = MSG_SUCCESS;
 
-       unsigned int retryCnt = 10;
+       unsigned int retryCnt = 100;
 
        do {
                if ((err = MsgOpenContactSvc()) != MSG_SUCCESS) {
                        retryCnt--;
                        MSG_DEBUG("MsgOpenContactSvc fail. Retry count left [%d]", retryCnt);
-                       usleep(100 * 1000);
+                       usleep(500 * 1000);
                }
        } while (err != MSG_SUCCESS && retryCnt > 0);