diff --git a/util/tube.c b/util/tube.c index 43455feef..a92dfa774 100644 --- a/util/tube.c +++ b/util/tube.c @@ -570,6 +570,7 @@ void tube_remove_bg_listen(struct tube* tube) { verbose(VERB_ALGO, "tube remove_bg_listen"); ub_winsock_unregister_wsaevent(tube->ev_listen); + tube->ev_listen = NULL; } void tube_remove_bg_write(struct tube* tube)