When closing unused inputs, remember to take down their sockets.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 17 Apr 2013 23:07:41 +0000 (01:07 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 17 Apr 2013 23:07:41 +0000 (01:07 +0200)
main.cpp

index b45713d..c626f46 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -385,6 +385,7 @@ start:
                if (input_it->second.refcount == 0) {
                        log(WARNING, "Input '%s' no longer in use, closing.",
                            input_it->first.c_str());
+                       input_it->second.input->close_socket();
                        delete input_it->second.input;
                        inputs.erase(input_it++);
                } else {