diff options
author | Bang Kwang min <justine.bang@samsung.com> | 2012-09-03 17:25:45 +0900 |
---|---|---|
committer | Bang Kwang min <justine.bang@samsung.com> | 2012-09-03 17:28:42 +0900 |
commit | 7d5b8217756eda89d4ad49c1b72f57d6a4bdad2c (patch) | |
tree | e712a95f0657a43acefcac69a850c60e4013ca13 | |
parent | bf61309e38e89c98411b1f3b59be138be7e78d83 (diff) | |
download | download-provider-7d5b8217756eda89d4ad49c1b72f57d6a4bdad2c.tar.gz download-provider-7d5b8217756eda89d4ad49c1b72f57d6a4bdad2c.tar.bz2 download-provider-7d5b8217756eda89d4ad49c1b72f57d6a4bdad2c.zip |
fix timeout error
[Title] can not enter to timeout job statement except first timeout.
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] flag move
[SCMRequest] N/A
Change-Id: Id75af7dcad9751975d7a493458191a01caa63462
-rw-r--r-- | src/download-provider-receiver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/download-provider-receiver.c b/src/download-provider-receiver.c index 0f90da4..6346acc 100644 --- a/src/download-provider-receiver.c +++ b/src/download-provider-receiver.c @@ -685,8 +685,6 @@ void *run_manage_download_server(void *args) //Even if no socket, downloading should be progressed. if (clientinfo_list[i].clientinfo->clientfd <= 0) continue; - if (is_timeout) - is_timeout = 0; if (FD_ISSET(clientinfo_list[i].clientinfo->clientfd, &rset) > 0) { // ignore it is not started yet. if (clientinfo_list[i].clientinfo->state <= DOWNLOAD_STATE_READY) @@ -694,6 +692,8 @@ void *run_manage_download_server(void *args) TRACE_DEBUG_INFO_MSG("FD_ISSET [%d] readset slot[%d]", clientinfo_list[i].clientinfo->clientfd, i); _handle_client_request(clientinfo_list[i].clientinfo); + if (is_timeout) + is_timeout = 0; } else if (FD_ISSET(clientinfo_list[i].clientinfo->clientfd, &exceptset) > 0) { TRACE_DEBUG_MSG("FD_ISSET [%d] exceptset slot[%d]", clientinfo_list[i].clientinfo->clientfd, i); clear_clientinfoslot(&clientinfo_list[i]); |