Kaydet (Commit) 2df08843 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

On error, properly exit from Impress RemoteServer::getClients

Looks like the actual return was missing in front of the empty
vector.

Change-Id: I0ccf0be53ef54138a3ebffab7b09b93b8c629aa0
üst 78414991
...@@ -206,10 +206,11 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator ) ...@@ -206,10 +206,11 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator )
std::vector<ClientInfo*> RemoteServer::getClients() std::vector<ClientInfo*> RemoteServer::getClients()
{ {
std::vector<ClientInfo*> aClients;
if ( !spServer ) if ( !spServer )
std::vector<ClientInfo*>(); return aClients;
MutexGuard aGuard( spServer->mDataMutex ); MutexGuard aGuard( spServer->mDataMutex );
std::vector<ClientInfo*> aClients;
aClients.assign( spServer->mAvailableClients.begin(), aClients.assign( spServer->mAvailableClients.begin(),
spServer->mAvailableClients.end() ); spServer->mAvailableClients.end() );
return aClients; return aClients;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment