(trunk libT) #2987 minor correction to r10303 -- silence a compiler warning and turn off some debug messages that printed to stderr.
This commit is contained in:
parent
e8cb5367e1
commit
ee4a29d200
|
@ -275,7 +275,7 @@ tr_webThreadFunc( void * vsession )
|
||||||
while(( task = tr_list_pop_front( &web->tasks )))
|
while(( task = tr_list_pop_front( &web->tasks )))
|
||||||
{
|
{
|
||||||
curl_multi_add_handle( multi, createEasy( session, web, task ));
|
curl_multi_add_handle( multi, createEasy( session, web, task ));
|
||||||
fprintf( stderr, "adding a task.. taskCount is now %d\n", taskCount );
|
/*fprintf( stderr, "adding a task.. taskCount is now %d\n", taskCount );*/
|
||||||
++taskCount;
|
++taskCount;
|
||||||
}
|
}
|
||||||
tr_lockUnlock( web->taskLock );
|
tr_lockUnlock( web->taskLock );
|
||||||
|
@ -321,7 +321,7 @@ tr_webThreadFunc( void * vsession )
|
||||||
curl_easy_getinfo( e, CURLINFO_RESPONSE_CODE, &task->code );
|
curl_easy_getinfo( e, CURLINFO_RESPONSE_CODE, &task->code );
|
||||||
curl_multi_remove_handle( multi, e );
|
curl_multi_remove_handle( multi, e );
|
||||||
curl_easy_cleanup( e );
|
curl_easy_cleanup( e );
|
||||||
fprintf( stderr, "removing a completed task.. taskCount is now %d (response code: %d, response len: %d)\n", taskCount, (int)task->code, EVBUFFER_LENGTH(task->response) );
|
/*fprintf( stderr, "removing a completed task.. taskCount is now %d (response code: %d, response len: %d)\n", taskCount, (int)task->code, (int)EVBUFFER_LENGTH(task->response) );*/
|
||||||
tr_runInEventThread( task->session, task_finish_func, task );
|
tr_runInEventThread( task->session, task_finish_func, task );
|
||||||
--taskCount;
|
--taskCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue