progress callback is called before running g_main_loop.
For that reason, it occurs that http transaction is finished abnormally.
Change-Id: If906b915e3cbcdba0d27ae782abde2643ef22402
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
#if DEBUG
FPRINTF("[Line : %d][%s] HttpTransactionProgressCB callback called\\n", __LINE__, API_NAMESPACE);
#endif
- b_HttpTransactionProgressCB = true;
- g_bCallbackHit = true;
+
+ if (download_total > 0) {
+ b_HttpTransactionProgressCB = true;
+ g_bCallbackHit = true;
+ }
return;
}