--- linuxsampler/trunk/src/network/lscpserver.cpp 2009/02/27 17:12:40 1847 +++ linuxsampler/trunk/src/network/lscpserver.cpp 2009/02/28 21:23:06 1848 @@ -141,6 +141,7 @@ } LSCPServer::~LSCPServer() { + CloseAllConnections(); #if defined(WIN32) if (hSocket >= 0) closesocket(hSocket); #else @@ -624,6 +625,14 @@ NotifyMutex.Unlock(); } +void LSCPServer::CloseAllConnections() { + std::vector::iterator iter = Sessions.begin(); + while(iter != Sessions.end()) { + CloseConnection(iter); + iter = Sessions.begin(); + } +} + void LSCPServer::LockRTNotify() { RTNotifyMutex.Lock(); }