Skip to content

Commit d916799

Browse files
committed
stop event_loop before join
1 parent a0ba9f3 commit d916799

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/src/vpn_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ Vpn::Vpn()
5757
}
5858

5959
Vpn::~Vpn() {
60+
if (ev_loop) {
61+
vpn_event_loop_stop(ev_loop.get());
62+
}
6063
if (executor_thread.joinable()) {
6164
executor_thread.join();
6265
}

0 commit comments

Comments
 (0)