Commit 323f1b44 authored by yannick legoc's avatar yannick legoc
Browse files

Replaced SessionManager.getInstance(serverId).getPlotyVersion() in...

Replaced SessionManager.getInstance(serverId).getPlotyVersion() in ServerSessionManager.logout and logoutAll
parent 9305117a
......@@ -152,7 +152,7 @@ public class ServerSessionManager {
SurveySubscriberImpl.getInstance(serverId).unsubscribe();
DataChangeSubscriber.getInstance(serverId).unsubscribe();
if (serverId.equals("real")) {
if (SessionManager.getInstance(serverId).getPlotyVersion() == 2) {
if (ConfigManager.getInstance().getPlotyVersion() == 2) {
PlotyInstance.getInstance().unsubscribe();
}
}
......@@ -191,7 +191,7 @@ public class ServerSessionManager {
}
if (serverId.equals("real")) {
if (SessionManager.getInstance(serverId).getPlotyVersion() == 2) {
if (ConfigManager.getInstance().getPlotyVersion() == 2) {
try {
PlotyInstance.getInstance().unsubscribe();
} catch (Exception e) {
......
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