diff options
| -rw-r--r-- | opentracker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index cc0700c..7e426d2 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -218,6 +218,9 @@ static void handle_write( const int64 sock ) { | |||
| 218 | if( res == -3 ) | 218 | if( res == -3 ) |
| 219 | break; | 219 | break; |
| 220 | 220 | ||
| 221 | if( !cookie->batch[i].bytesleft ) | ||
| 222 | continue; | ||
| 223 | |||
| 221 | if( res == -1 || res > 0 || i < cookie->batches - 1 ) | 224 | if( res == -1 || res > 0 || i < cookie->batches - 1 ) |
| 222 | return; | 225 | return; |
| 223 | } | 226 | } |
