Merge "Issue #2632 - Remove user from list on sign-off. Fixed check for available" into development
Former-commit-id: 8f25c8c9f9e47cbff07e8ac39dfb6ab672adb611
This commit is contained in:
commit
6b20d38b1a
1 changed files with 4 additions and 6 deletions
|
@ -63,6 +63,7 @@ import com.raytheon.uf.viz.core.sounds.SoundUtil;
|
|||
* Feb 24, 2014 2632 mpduff Initial creation.
|
||||
* Mar 05, 2014 2632 mpduff Removed unused field.
|
||||
* Mar 12, 2014 2632 mpduff Don't process the notifier if the presence is null.
|
||||
* Apr 02, 2014 2632 mpduff Remove user from list every time on a sign off
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -117,9 +118,9 @@ public class NotifierTools {
|
|||
}
|
||||
} else if (usersOnline.contains(userId.getName())
|
||||
&& (Type.unavailable == type)) {
|
||||
usersOnline.remove(userId.getName());
|
||||
if (notifiers.contains(Notifier.SignOff)) {
|
||||
executeNotifierTask(task);
|
||||
usersOnline.remove(userId.getName());
|
||||
NotifierTools.taskExecuted(task);
|
||||
return;
|
||||
}
|
||||
|
@ -127,11 +128,8 @@ public class NotifierTools {
|
|||
|
||||
// presence mode change events
|
||||
for (Notifier n : notifiers) {
|
||||
if (Notifier.Returns == n && mode == null) {
|
||||
/*
|
||||
* Apparently a null mode is the same as available. See
|
||||
* AbstractUserLabelProvider.getImageName();
|
||||
*/
|
||||
if (Notifier.Returns == n && mode == null
|
||||
&& Type.available == type) {
|
||||
executeNotifierTask(task);
|
||||
NotifierTools.taskExecuted(task);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue