Dispatcher: Avoid warning by using for(;;) instead of while(true).

This commit is contained in:
Peter Johnson
2015-07-20 20:20:01 -07:00
parent 158ae61811
commit 8938a19810

View File

@@ -209,7 +209,7 @@ void Dispatcher::ClientThreadMain(const char* server_name, unsigned int port) {
// receive initial assignments
std::vector<std::shared_ptr<Message>> incoming;
while (true) {
for (;;) {
if (!msg) {
// disconnected, retry
DEBUG("client disconnected waiting for initial entries");