Commit 3fb0e8c1 authored by ics's avatar ics

managing kill ploty2 for remote

parent a14a6687
......@@ -133,6 +133,9 @@ public class PlotyInstance {
}
}
else {
break;
}
}
}
});
......
......@@ -150,7 +150,9 @@ public class ServerSessionManager {
LogSubscriber.getInstance(serverId).unsubscribe();
SurveySubscriberImpl.getInstance(serverId).unsubscribe();
DataChangeSubscriber.getInstance(serverId).unsubscribe();
PlotyInstance.getInstance().unsubscribe();
if (serverId.equals("real")) {
PlotyInstance.getInstance().unsubscribe();
}
DataAccessor.getInstance(serverId).reset();
ServantManagerAccessor.getInstance(serverId).reset();
......@@ -184,6 +186,14 @@ public class ServerSessionManager {
} catch (Exception e) {
System.out.println("Cannot unsubscribe data change");
}
if (serverId.equals("real")) {
try {
PlotyInstance.getInstance().unsubscribe();
} catch (Exception e) {
System.out.println("Cannot unsubscribe data change");
}
}
}
public ServantManagerAccessor getServantManagerAccessor() {
......
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