SEBSERV-441 fix

This commit is contained in:
anhefti 2023-05-08 15:00:15 +02:00
parent e949d48710
commit 540bb7290c

View file

@ -69,16 +69,9 @@ public class ColorData {
switch (entry.getStatus()) { switch (entry.getStatus()) {
case CONNECTION_REQUESTED: case CONNECTION_REQUESTED:
case AUTHENTICATED: { case AUTHENTICATED: {
if (entry.incidentFlag() > 0) { return 0;
return -1;
}
return 1;
} }
case ACTIVE: { case ACTIVE: {
final int incidentFlag = entry.incidentFlag();
if (incidentFlag > 0) {
return -incidentFlag;
}
return 2; return 2;
} }
case CLOSED: case CLOSED: