Fix node monitoring slot accounting for stop_watching()

NodeMonitorService::RemoveUserListeners() didn't decrement
io_context::num_monitors when removing a listener, so limit checks
would be off afterwards.
This commit is contained in:
Ingo Weinhold 2013-06-27 21:21:42 +02:00
parent 1eda8517f1
commit 0d603ac65c

View File

@ -982,6 +982,7 @@ NodeMonitorService::RemoveUserListeners(struct io_context *context,
// to remove its successor (which is saved in "removeListener")
_RemoveListener(removeListener);
context->num_monitors--;
count++;
}