Fix block issue of main thread 94/185894/3
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 3 Aug 2018 08:50:20 +0000 (17:50 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 6 Aug 2018 01:31:08 +0000 (10:31 +0900)
commit6fda596def0e25901e30478b05f490d8231774ad
tree2f7fbf364e84324acbae65b9023a8d3c3273c1cd
parente8409d496e6c03a1429e724b764f01a4bc591a90
Fix block issue of main thread

Main thread often faces with bloking when pause and resume occur repeatedly.
It's becuase previous resume event causes data packet.
Although pause() is invoked, data packet can be recieved because of previous resume event.
However, download-provider considers this situaition as 'error' state.
This change makes main thread just wait for changing download state properly.

Change-Id: I1e22661fb909d449b94db26aad8bbe2cfb033d8c
agent/download-agent-http-mgr.c
packaging/download-provider.spec