X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=main.cpp;h=50fd48e729f1df4c47b30755e017b9f2d2c1a0d8;hp=18976fc833b6d49a981af6fc67e79fe1efa64469;hb=HEAD;hpb=6d34c5b6d8e5bec5d1421eadc103f38d206f34f1 diff --git a/main.cpp b/main.cpp index 18976fc..50fd48e 100644 --- a/main.cpp +++ b/main.cpp @@ -623,6 +623,9 @@ start: } for (const auto &key_and_input_with_refcount : inputs) { key_and_input_with_refcount.second.input->stop(); + if (stopped) { + key_and_input_with_refcount.second.input->close_socket(); + } } servers->stop();