mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 09:46:13 +00:00
More cleanup.
This commit is contained in:
parent
0214dbc277
commit
5f51653f9c
@ -420,17 +420,8 @@ void Network::setEnabled(bool enabled)
|
||||
void Network::destroy()
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
|
||||
_enabled = false;
|
||||
_destroyed = true;
|
||||
|
||||
if (_setupThread)
|
||||
Thread::join(_setupThread);
|
||||
_setupThread = Thread();
|
||||
|
||||
if (_tap)
|
||||
RR->tapFactory->close(_tap,true);
|
||||
_tap = (EthernetTap *)0;
|
||||
}
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
Loading…
x
Reference in New Issue
Block a user