mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 22:35:43 +02:00
[222003] client remains connected after server terminates
This commit is contained in:
parent
63f0afc5f8
commit
f22da1c871
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness
|
||||
* David McKnight (IBM) [222003] Client remains connected after server terminates
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.internal.core.util;
|
||||
|
@ -112,6 +113,15 @@ public abstract class Receiver extends Thread implements IDataStorePreferenceLis
|
|||
{
|
||||
handleInput();
|
||||
}
|
||||
|
||||
if (_canExit){
|
||||
// is this an unexpected exit?
|
||||
if (_dataStore.isConnected()){
|
||||
// server exited without client exit
|
||||
Exception e = new Exception("Server terminated unexpectedly");
|
||||
handleError(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue