add get_own_jid method to ConnectionZeroconf. Fixes #8809
This commit is contained in:
parent
c18ef648e6
commit
53a92bdee8
gajim/common/zeroconf
|
@ -36,6 +36,8 @@ import socket
|
|||
import random
|
||||
random.seed()
|
||||
|
||||
import nbxmpp
|
||||
|
||||
import signal
|
||||
if os.name != 'nt':
|
||||
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||
|
@ -122,6 +124,9 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
|
|||
def check_jid(self, jid):
|
||||
return jid
|
||||
|
||||
def get_own_jid(self):
|
||||
return nbxmpp.JID(self.username + '@' + self.hostname)
|
||||
|
||||
def reconnect(self):
|
||||
# Do not try to reco while we are already trying
|
||||
self.time_to_reconnect = None
|
||||
|
|
Loading…
Reference in New Issue