Mercurial > audlegacy-plugins
comparison src/curl/curl.c @ 947:24a5068bb7f8 trunk
[svn] - only create a new thread if handle->cancel is 0.
author | nenolod |
---|---|
date | Thu, 12 Apr 2007 14:04:26 -0700 |
parents | 2d06a4e9b032 |
children | 8dd7c03376bb |
comparison
equal
deleted
inserted
replaced
946:2d06a4e9b032 | 947:24a5068bb7f8 |
---|---|
509 if (handle->failed) | 509 if (handle->failed) |
510 { | 510 { |
511 handle->cancel = 1; | 511 handle->cancel = 1; |
512 return; | 512 return; |
513 } | 513 } |
514 if (!handle->thread) | 514 if (!handle->thread && !handle->cancel) |
515 { | 515 { |
516 handle->cancel = 0; | 516 handle->cancel = 0; |
517 handle->wr_index = 0; | 517 handle->wr_index = 0; |
518 handle->rd_index = 0; | 518 handle->rd_index = 0; |
519 handle->wr_abs = handle->rd_abs; | 519 handle->wr_abs = handle->rd_abs; |