calling stopped callback in error case
authorBang Kwang min <justine.bang@samsung.com>
Fri, 31 Aug 2012 05:01:50 +0000 (14:01 +0900)
committerBang Kwang min <justine.bang@samsung.com>
Mon, 3 Sep 2012 01:39:23 +0000 (10:39 +0900)
commit3b57085497f0127f971eaef78ac77e790b89affd
treecc390f9a691d4f78679232a6a32e3615a99ec328
parent19d91820521bc53021c79f40eea64a921b87b6c7
calling stopped callback in error case

[Title] call stopped callback in all error case in event thread
[Issue#] N/A
[Problem] sometimes one thread does not get event anymore. lockup.
[Cause] client can't know error case when broken socket with download-provider
[Solution] alert error by callback in all error case
[SCMRequest] N/A

fix the crash in clear_socket
 - gallery call url_download_destory in callback function.
fix lockup issue by read block
 - if failed to send the packet in url_download_stop,
   add exception handling to not call ipc_read if failed ipc_send()

Change-Id: I534f6d5c41868fdc77f795c445fe79677541fcec
src/url_download_provider.c