Testnet work... getting there!

This commit is contained in:
Adam Ierymenko 2014-10-23 16:46:09 -07:00
commit 4fbb098daa
11 changed files with 398 additions and 149 deletions

View file

@ -53,10 +53,6 @@ EthernetTap *TestEthernetTapFactory::open(
Mutex::Lock _l(_taps_m);
_taps.insert(tap);
}
{
Mutex::Lock _l(_tapsByDevice_m);
_tapsByDevice[tap->deviceName()] = tap;
}
{
Mutex::Lock _l(_tapsByMac_m);
_tapsByMac[mac] = tap;
@ -73,10 +69,6 @@ void TestEthernetTapFactory::close(EthernetTap *tap,bool destroyPersistentDevice
Mutex::Lock _l(_taps_m);
_taps.erase(tapp);
}
{
Mutex::Lock _l(_tapsByDevice_m);
_tapsByDevice.erase(tapp->deviceName());
}
{
Mutex::Lock _l(_tapsByMac_m);
_tapsByMac.erase(tapp->mac());