Add Timeout for the notification 54/31954/4
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Fri, 12 Dec 2014 11:47:09 +0000 (12:47 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Fri, 12 Dec 2014 17:18:00 +0000 (09:18 -0800)
The default answer will be NO if the timeout is reach

Change-Id: I12b5c0567c2c70ef2098a6df3726ebf57c0f5787
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
server/src/pkgmgr-server.c

index fdfaeffcc9dd883f16e561e5e46e9ba3b4b56cbc..a875508172b7a4288fbee71e6cd4cb4367fa718b 100644 (file)
@@ -819,7 +819,7 @@ int create_popup(struct appdata *ad)
        /* Catch user response */
        int button;
 
-       err = notification_wait_response (noti, 0, &button, NULL);
+       err = notification_wait_response (noti, 10, &button, NULL);
        if (err != NOTIFICATION_ERROR_NONE) {
                DBG("Failed to wait for user response, defaulting to 'no'\n");
                button = 2;