From 78223c1ef2ef456e85ef3c086b5a3a070a89fac3 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 15 Oct 2014 12:29:14 +0100 Subject: Only complain if errno is not EWOULDBLOCK --- ratox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index e81446d..32c645e 100644 --- a/ratox.c +++ b/ratox.c @@ -942,7 +942,8 @@ sendfriendfile(struct friend *f) break; } if (n == -1) { - printf("fiforead in sendfriendfile failed. fix this. errno = %d\n", errno); + if (errno != EWOULDBLOCK) + weprintf("fiforead:"); break; } /* Store transfer size in case we can't send it right now */ -- cgit v1.2.3