X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=main.cpp;fp=main.cpp;h=058935d523165a5c7ff62479147329f17ec38037;hp=7da66507a366881c51dc652500cc0704b66fee60;hb=49851eb86428de7a76b00ea4067cdf32c28e7397;hpb=43e197840691037f7af9c999f3822316ae40402c diff --git a/main.cpp b/main.cpp index 7da6650..058935d 100644 --- a/main.cpp +++ b/main.cpp @@ -521,7 +521,9 @@ start: loaded_state.mutable_clients()->end(), OrderByConnectionTime()); for (int i = 0; i < loaded_state.clients_size(); ++i) { - if (all_urls.count(loaded_state.clients(i).url()) == 0) { + if (!loaded_state.clients(i).url().empty() && + all_urls.count(loaded_state.clients(i).url()) == 0) { + // Belongs to a dead stream (not keepalive), so we just have to close. safe_close(loaded_state.clients(i).sock()); } else { servers->add_client_from_serialized(loaded_state.clients(i), short_response_pool);