Commit 623a3767 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[httpupload] Dont set conn object in init

parent 6f292d13
......@@ -124,7 +124,6 @@ class Base(object):
self.enabled = False
self.component = None
self.controls = {}
self.conn = gajim.connections[account].connection
def add_button(self, chat_control):
jid = chat_control.contact.jid
......@@ -240,7 +239,7 @@ class Base(object):
log.info("Sending request for slot")
IQ_CALLBACK[id_] = lambda stanza: self.received_slot(stanza, file)
self.conn.send(iq)
gajim.connections[self.account].connection.send(iq)
def received_slot(self, stanza, file):
log.info("Received slot")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment