e49b299867
When changing async callbacks on streams, we have to make sure the watcher callback is not currently active and has temporarily disabled callbacks. This could have been the case, as we didn't explicitly removed any pending watcher registration if both callbacks are NULL. By enforcing the watcher unregistration, we are sure the watcher callback is not active and currently is not mangling the callback hooks. This should make sure we avoid any races for the callback variables. |
||
---|---|---|
.. | ||
streams | ||
host.c | ||
host.h | ||
host_resolver.c | ||
host_resolver.h | ||
packet.c | ||
packet.h | ||
tun_device.c | ||
tun_device.h |