1
0
Fork 0
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:
David McKnight 2008-03-10 14:53:26 +00:00
parent 63f0afc5f8
commit f22da1c871

View file

@ -13,6 +13,7 @@
* *
* Contributors: * Contributors:
* David McKnight (IBM) [220123][dstore] Configurable timeout on irresponsiveness * 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; package org.eclipse.dstore.internal.core.util;
@ -112,6 +113,15 @@ public abstract class Receiver extends Thread implements IDataStorePreferenceLis
{ {
handleInput(); 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) catch (Exception e)
{ {