Skip to content
Snippets Groups Projects
Commit 53a92bde authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add get_own_jid method to ConnectionZeroconf. Fixes #8809

parent c18ef648
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment