Tiny optimization -- don't find the entry twice.

This commit is contained in:
JoelKatz
2012-12-13 12:15:23 -08:00
parent 4a809a5d1c
commit 092fe4389e

View File

@@ -100,7 +100,7 @@ public:
if (it == mMap.end())
return;
ptr = it->second; // prevent the WSConnection from being destroyed until we release the lock
mMap.erase(cpClient);
mMap.erase(it);
}
}