ecode: Fix LSP Server stop.

This commit is contained in:
Martín Lucas Golini
2022-12-22 19:30:16 -03:00
parent 32b6aab371
commit 68c61e5393
4 changed files with 39 additions and 11 deletions

View File

@@ -852,11 +852,9 @@ LSPClientServer::LSPClientServer( LSPClientServerManager* manager, const String:
mManager( manager ), mId( id ), mLSP( lsp ), mRootPath( rootPath ) {}
LSPClientServer::~LSPClientServer() {
{
Lock l( mClientsMutex );
for ( const auto& client : mClients )
client.first->unregisterClient( client.second.get() );
}
Lock l( mClientsMutex );
for ( const auto& client : mClients )
client.first->unregisterClient( client.second.get() );
}
bool LSPClientServer::start() {