summaryrefslogtreecommitdiff
path: root/src/core/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/handlers.py')
-rw-r--r--src/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 6d775a78..ce54ccab 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -1161,7 +1161,7 @@ def on_next_adhoc_step(self, iq, adhoc_session):
self.information("Adhoc command %s: %s" % (status, notes), "Info")
def on_adhoc_error(self, iq, adhoc_session):
- self.xmpp.plugin['xep_0050'].terminate_command(session)
+ self.xmpp.plugin['xep_0050'].terminate_command(adhoc_session)
error_message = self.get_error_message(iq)
self.information("An error occured while executing the command: %s" % (error_message),
'Error')