mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-16 07:52:50 +03:00
eepp: mojoAL is now used by default.
ecode: Tentative fix for a segfaul when accesing an LSP Server that isn't running anymore.
This commit is contained in:
@@ -199,6 +199,17 @@ void LSPClientServerManager::renameSymbol( const URI& uri, const TextPosition& p
|
||||
} );
|
||||
}
|
||||
|
||||
bool LSPClientServerManager::isServerRunning( const LSPClientServer* server ) {
|
||||
for ( const auto& svr : mClients ) {
|
||||
if ( server == svr.second.get() ) {
|
||||
if ( mErasingClients.find( svr.first ) != mErasingClients.end() )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void LSPClientServerManager::run( const std::shared_ptr<TextDocument>& doc ) {
|
||||
mThreadPool->run( [&, doc]() { tryRunServer( doc ); } );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user