X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.cpp;h=9ff4758493abf06d4268fc3a1fd5e54087366408;hp=e99dbeaa89b311788a9c0fc4eb132a667db3f5b1;hb=1c4ef2d6d366e5539b98b408d797657ca8a17bc0;hpb=0148c673073be3c7dd7a8252f67cb8e6095a434e diff --git a/server.cpp b/server.cpp index e99dbea..9ff4758 100644 --- a/server.cpp +++ b/server.cpp @@ -140,7 +140,7 @@ void Server::do_work() } timeout_time.tv_sec -= REQUEST_READ_TIMEOUT_SEC; while (!clients_ordered_by_connect_time.empty()) { - pair &connect_time_and_fd = clients_ordered_by_connect_time.front(); + const pair &connect_time_and_fd = clients_ordered_by_connect_time.front(); // See if we have reached the end of clients to process. if (is_earlier(timeout_time, connect_time_and_fd.first)) {