mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
exit tun loop in destructor
This commit is contained in:
parent
c45a3201c5
commit
784a25634b
2 changed files with 9 additions and 2 deletions
|
@ -230,6 +230,11 @@ exit_tun_loop()
|
|||
}
|
||||
}
|
||||
|
||||
llarp_win32_loop::~llarp_win32_loop()
|
||||
{
|
||||
exit_tun_loop();
|
||||
}
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
int
|
||||
|
@ -677,4 +682,4 @@ llarp_win32_loop::stop()
|
|||
upoll_destroy(upollfd);
|
||||
upollfd = nullptr;
|
||||
llarp::LogDebug("destroy upoll");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,8 @@ struct llarp_win32_loop : public llarp_ev_loop
|
|||
{
|
||||
}
|
||||
|
||||
~llarp_win32_loop();
|
||||
|
||||
bool
|
||||
tcp_connect(struct llarp_tcp_connecter* tcp, const sockaddr* remoteaddr);
|
||||
|
||||
|
@ -152,4 +154,4 @@ struct llarp_win32_loop : public llarp_ev_loop
|
|||
stop();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue