diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-04-30 01:27:34 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-04-30 01:27:34 +0400 |
commit | 11ddb8a6fba1041f0964c0acf9fc6f5a1098f614 (patch) | |
tree | dc2547d3f853f5fca003e06ad659190c8484b790 | |
parent | d8b17e0166b536250b331e69c1fc86b4f4ce3f2d (diff) |
[Dicson] differenciate what we get from geoclue and when we get from jabber server. It's different. Fixes #5724
-rw-r--r-- | src/common/location_listener.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/location_listener.py b/src/common/location_listener.py index 5a8e21b15..e6cbb7ee4 100644 --- a/src/common/location_listener.py +++ b/src/common/location_listener.py @@ -79,6 +79,7 @@ class LocationListener: accuracy) def start(self): + self.location_info = {} self.get_data() bus = dbus.SessionBus() # Geoclue @@ -124,10 +125,10 @@ class LocationListener: continue if not gajim.config.get_per('accounts', acct, 'publish_location'): continue - if gajim.connections[acct].location_info == self._data: + if self.location_info == self._data: continue gajim.connections[acct].send_location(self._data) - gajim.connections[acct].location_info = self._data + self.location_info = self._data.copy() def _timestamp_to_utc(self, timestamp): time = datetime.utcfromtimestamp(timestamp) |