Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/connection.py
    ... ... @@ -709,11 +709,6 @@ class Connection(CommonConnection, ConnectionHandlers):
    709 709
                 self._nec_gc_stanza_message_outgoing)
    
    710 710
             app.ged.register_event_handler('stanza-message-outgoing',
    
    711 711
                 ged.OUT_CORE, self._nec_stanza_message_outgoing)
    
    712
    -
    
    713
    -        h = app.config.get_per('accounts', self.name, 'hostname')
    
    714
    -        if h:
    
    715
    -            app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
    
    716
    -                self._on_resolve_txt, type_='txt')
    
    717 712
         # END __init__
    
    718 713
     
    
    719 714
         def cleanup(self):
    
    ... ... @@ -1093,6 +1088,10 @@ class Connection(CommonConnection, ConnectionHandlers):
    1093 1088
             ]
    
    1094 1089
             self._hostname = hostname
    
    1095 1090
     
    
    1091
    +        if h:
    
    1092
    +            app.resolver.resolve('_xmppconnect.' + helpers.idn_to_ascii(h),
    
    1093
    +                                 self._on_resolve_txt, type_='txt')
    
    1094
    +
    
    1096 1095
             if use_srv and self._proxy is None:
    
    1097 1096
                 self._srv_hosts = []
    
    1098 1097