From 11ddb8a6fba1041f0964c0acf9fc6f5a1098f614 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 29 Apr 2010 23:27:34 +0200 Subject: [PATCH] [Dicson] differenciate what we get from geoclue and when we get from jabber server. It's different. Fixes #5724 --- src/common/location_listener.py | 5 +++-- 1 file 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)