Close IBB stream with correct SID. See #8555

This commit is contained in:
Yann Leboulanger 2017-03-01 22:10:30 +01:00 committed by Philipp Hörist
parent 1a3d60c637
commit 3bc6173a11
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ class ConnectionIBBytestream(ConnectionBytestream):
self.connection.send(nbxmpp.Protocol('iq',
file_props.direction[1:], 'set',
payload=[nbxmpp.Node(nbxmpp.NS_IBB + ' close',
{'sid':file_props.sid})]))
{'sid':file_props.transport_sid})]))
if file_props.session_type == 'jingle':
peerjid = \
file_props.receiver if file_props.type_ == 's' else file_props.sender