diff options
author | Grant Limberg <glimberg@gmail.com> | 2015-07-28 19:18:33 -0700 |
---|---|---|
committer | Grant Limberg <glimberg@gmail.com> | 2015-07-28 19:18:33 -0700 |
commit | 508d31513a0848236258542930cf577d95afda99 (patch) | |
tree | 453b31d874e6ec0dee3105191142efc8a326a30d /node/Node.cpp | |
parent | bc0954381ccdca065987512a45d5dd6ace6cca9d (diff) | |
parent | 7578b5629849f6c286c353dce713b0816b1cc4a9 (diff) | |
download | infinitytier-508d31513a0848236258542930cf577d95afda99.tar.gz infinitytier-508d31513a0848236258542930cf577d95afda99.zip |
Merge branch 'adamierymenko-dev' into android-jni
Diffstat (limited to 'node/Node.cpp')
-rw-r--r-- | node/Node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index ebe0527e..d40ceab9 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -316,6 +316,7 @@ ZT1_ResultCode Node::leave(uint64_t nwid) for(std::vector< std::pair< uint64_t,SharedPtr<Network> > >::const_iterator n(_networks.begin());n!=_networks.end();++n) { if (n->first != nwid) newn.push_back(*n); + else n->second->destroy(); } _networks.swap(newn); return ZT1_RESULT_OK; |