summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2021-04-25 13:30:24 +0200
committerDirk Engling <erdgeist@erdgeist.org>2021-04-25 13:30:24 +0200
commit2f228c27c2bd23178f412419a4bc352f8543d81a (patch)
tree5f99fad26411e6ac57ac5313fde00a80c2698d77
parent95f1780f0b6229a6f52b6dbad1a645b4e91c6b06 (diff)
Retry successful writes immediately
-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 }