shared: Fix not marking writer as active in mgmt
PATCH 1/1 shared: Fix not marking writer as active in mgmt
--- src/shared/mgmt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
src/shared/mgmt.c +5 -2
@@ -209,8 +209,11 @@ static void wakeup_writer(struct mgmt *mgmt)if (mgmt->writer_active)return ; -io_set_write_handler (mgmt->io, can_write_data, mgmt, - write_watch_destroy); +if (!io_set_write_handler (mgmt->io, can_write_data, mgmt, + write_watch_destroy)) +return ; + + mgmt->writer_active = true; }struct opcode_index {
Signature · 1 line
1.9.0