aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/server/sws.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 270c6a3af..2a9e32dcd 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -520,10 +520,10 @@ static int send_doc(int sock, struct httprequest *req)
written = swrite(sock, STREAMTHIS, count);
if(written != (int)count) {
logmsg("Stopped streaming");
- return -1;
+ break;
}
}
- break;
+ return -1;
case RCMD_IDLE:
/* Do nothing. Sit idle. Pretend it rains. */
return 0;