summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2021-04-25 18:24:05 +0200
committerDirk Engling <erdgeist@erdgeist.org>2021-04-25 18:24:05 +0200
commit0178c27662bd70640ee17f4659f1f6c482d465be (patch)
treeaee4da39c2be861246c1548737ef64060fd51e5b
parentdfe687aa813f8d74cd2afb4544a8463c0a3c00b2 (diff)
parent2f228c27c2bd23178f412419a4bc352f8543d81a (diff)
Merge branch 'split-iobatches' of erdgeist.org:opentracker into split-iobatches
-rw-r--r--opentracker.c3
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 }