State iconsferansfers fixnsfer
git-svn-id: svn://db.shs.com.ru/pip@54 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -148,7 +148,7 @@ PIPeer::~PIPeer() {
|
|||||||
i->stopThreadedRead();
|
i->stopThreadedRead();
|
||||||
piForeach (PIEthernet * i, eths_bcast)
|
piForeach (PIEthernet * i, eths_bcast)
|
||||||
i->stopThreadedRead();
|
i->stopThreadedRead();
|
||||||
eth_send.stopThreadedRead();
|
eth_send.close();
|
||||||
eth_lo.stopThreadedRead();
|
eth_lo.stopThreadedRead();
|
||||||
sendSelfRemove();
|
sendSelfRemove();
|
||||||
destroyMBcasts();
|
destroyMBcasts();
|
||||||
@@ -736,7 +736,13 @@ void PIPeer::checkNetwork() {
|
|||||||
prev_ifaces = ifaces;
|
prev_ifaces = ifaces;
|
||||||
PIMutexLocker mbl(mc_mutex);
|
PIMutexLocker mbl(mc_mutex);
|
||||||
PIMutexLocker ethl(eth_mutex);
|
PIMutexLocker ethl(eth_mutex);
|
||||||
|
PIMutexLocker pl(peers_mutex);
|
||||||
initNetwork();
|
initNetwork();
|
||||||
|
eth_send.close();
|
||||||
|
eth_lo.stopThreadedRead();
|
||||||
|
eth_lo.close();
|
||||||
|
eth_send.open();
|
||||||
|
eth_lo.startThreadedRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user