avoid spurious Leak warning
copying an array just to see if it is empty isn't so efficient.
This commit is contained in:
@@ -362,13 +362,6 @@ void ServerContextImpl::shutdown()
|
||||
|
||||
void ServerContextImpl::destroyAllTransports()
|
||||
{
|
||||
TransportRegistry::transportVector_t transports;
|
||||
_transportRegistry.toArray(transports);
|
||||
|
||||
size_t size = transports.size();
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
// now clear all (release)
|
||||
_transportRegistry.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user