diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 49f6f0dad..59ec2012c 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -33,7 +33,7 @@ import base64 import sys import operator import hashlib -import gobject +from gi.repository import GObject from time import (altzone, daylight, gmtime, localtime, mktime, strftime, time as time_time, timezone, tzname) @@ -560,7 +560,7 @@ class ConnectionVcard: self.discover_ft_proxies() gajim.nec.push_incoming_event(RosterReceivedEvent(None, conn=self)) - gobject.timeout_add_seconds(10, self.discover_servers) + GObject.timeout_add_seconds(10, self.discover_servers) elif self.awaiting_answers[id_][0] == PRIVACY_ARRIVED: if iq_obj.getType() != 'error': self.privacy_rules_supported = True