channel: refactor events, prevent recursive invocation of events

This commit is contained in:
Björn Linse
2019-05-17 18:16:45 +02:00
parent 4946751906
commit d4938743e6
4 changed files with 174 additions and 120 deletions

View File

@@ -5165,7 +5165,7 @@ bool garbage_collect(bool testing)
{
Channel *data;
map_foreach_value(channels, data, {
set_ref_in_callback_reader(&data->on_stdout, copyID, NULL, NULL);
set_ref_in_callback_reader(&data->on_data, copyID, NULL, NULL);
set_ref_in_callback_reader(&data->on_stderr, copyID, NULL, NULL);
set_ref_in_callback(&data->on_exit, copyID, NULL, NULL);
})