automatically delete disabled input streams

This commit is contained in:
Bernhard Amann 2012-06-07 14:12:42 -07:00
parent 18f07d3a46
commit 852de4700c
4 changed files with 39 additions and 11 deletions

View file

@ -6,9 +6,6 @@
#include "threading/MsgThread.h"
// FIXME: cleanup of disabled inputreaders is missing. we need this, because
// stuff can e.g. fail in init and might never be removed afterwards.
namespace input {
class InitMessage : public threading::InputMessage<ReaderBackend>
@ -106,6 +103,7 @@ void ReaderFrontend::Close()
return;
}
disabled = true;
backend->SendIn(new CloseMessage(backend));
}