mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
automatically delete disabled input streams
This commit is contained in:
parent
18f07d3a46
commit
852de4700c
4 changed files with 39 additions and 11 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue