don't use same var for different things in the same function! Fixes #5235
This commit is contained in:
parent
c2e15ae9d2
commit
a9c7731cbb
|
@ -1229,15 +1229,15 @@ class GroupchatControl(ChatControlBase, GroupChatCommands):
|
||||||
# Stop all E2E sessions
|
# Stop all E2E sessions
|
||||||
nick_list = gajim.contacts.get_nick_list(self.account,
|
nick_list = gajim.contacts.get_nick_list(self.account,
|
||||||
self.room_jid)
|
self.room_jid)
|
||||||
for nick in nick_list:
|
for nick_ in nick_list:
|
||||||
fjid = self.room_jid + '/' + nick
|
fjid_ = self.room_jid + '/' + nick_
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(fjid,
|
ctrl = gajim.interface.msg_win_mgr.get_control(fjid_,
|
||||||
self.account)
|
self.account)
|
||||||
if ctrl and ctrl.session and \
|
if ctrl and ctrl.session and \
|
||||||
ctrl.session.enable_encryption:
|
ctrl.session.enable_encryption:
|
||||||
thread_id = ctrl.session.thread_id
|
thread_id = ctrl.session.thread_id
|
||||||
ctrl.session.terminate_e2e()
|
ctrl.session.terminate_e2e()
|
||||||
gajim.connections[self.account].delete_session(fjid,
|
gajim.connections[self.account].delete_session(fjid_,
|
||||||
thread_id)
|
thread_id)
|
||||||
ctrl.no_autonegotiation = False
|
ctrl.no_autonegotiation = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue