Skip to content

Commit

Permalink
dispatch_connection: really return work done when there was some (udp)
Browse files Browse the repository at this point in the history
  • Loading branch information
grobian committed Jan 6, 2017
1 parent 730743b commit 254b32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ dispatch_connection(connection *conn, dispatcher *self, struct timeval start)
conn->buflen = 0;
__sync_bool_compare_and_swap(&(conn->takenby), self->id, 0);

return 0;
return len > 0;
} else {
__sync_add_and_fetch(&closedconnections, 1);
close(conn->sock);
Expand Down

0 comments on commit 254b32b

Please sign in to comment.