diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-09-17 12:28:42 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-09-17 12:28:42 +0200 |
commit | eda842cbb639c80731ea23b6436ae958ada39848 (patch) | |
tree | 56b71ef6448fac15fc53f6c9868aa3eb03193073 /src/misc.c | |
parent | 57cb704e6387fd1a84bb26e7242d49a1c268fb40 (diff) | |
download | bbs-eda842cbb639c80731ea23b6436ae958ada39848.tar.gz |
cleanup
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -47,8 +47,10 @@ int try_write(int _fd, char *_buff, int _size, int _retry) if(ret < 0) return 1; - else + else { written += ret; + cntr = 0; //reset fail counter + } if(++cntr > _retry) return 1; |