From: Steinar H. Gunderson Date: Sun, 14 Apr 2013 21:41:22 +0000 (+0200) Subject: Small microoptimization in do_work(). X-Git-Tag: 1.0.0~106^2~2 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=ca5f208423d42bc6d9a8601d5f9a6ffae0119f40;hp=c1877e6bdecc88317a97c172f6bd390f249afef1 Small microoptimization in do_work(). --- diff --git a/server.cpp b/server.cpp index 730bb44..a11b55f 100644 --- a/server.cpp +++ b/server.cpp @@ -400,7 +400,7 @@ sending_data_again: // We don't have any more data for this client, so put it to sleep. // This is postcondition #3. stream->put_client_to_sleep(client); - } else if (more_data) { + } else if (more_data && ret == bytes_to_send) { goto sending_data_again; } break;