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