diff options
author | Damian Minkov <damencho@jitsi.org> | 2014-03-12 17:30:10 +0200 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2014-03-12 17:31:15 +0200 |
commit | cf84684ada5fa2f0d5dbd969283fe4c0d4ede3e0 (patch) | |
tree | 9c32c76c861c2b8c660a681c4af22f04deb4f1e9 /src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java | |
parent | 797781994ed1af1455e34dcf7c2c883deb04e30a (diff) | |
download | jitsi-cf84684ada5fa2f0d5dbd969283fe4c0d4ede3e0.zip jitsi-cf84684ada5fa2f0d5dbd969283fe4c0d4ede3e0.tar.gz jitsi-cf84684ada5fa2f0d5dbd969283fe4c0d4ede3e0.tar.bz2 |
Removes unnecessary call to GlobalStatusService publishStatus on providerStatusChanged, as the status has just changed. Quick change of away/online status can lead to cycling through away and online status.
.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java index 80980a9..ba5129e 100644 --- a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java +++ b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayWatcher.java @@ -237,15 +237,15 @@ public class AutoAwayWatcher continue;
}
- addProviderToLastStates(protocolProvider, status);
-
PresenceStatus newStatus
= StatusUpdateThread.findAwayStatus(presence);
try
{
- if (newStatus != null)
+ if (newStatus != null && !status.equals(newStatus))
{
+ addProviderToLastStates(protocolProvider, status);
+
presence.publishPresenceStatus(
newStatus,
newStatus.getStatusName());
|