Call winekill task when cancelling wine installs (Closes #2084)

This commit is contained in:
Mathieu Comandon 2019-11-20 19:00:09 -08:00
parent 3cc593789c
commit 7a7d41f94e

View file

@ -730,6 +730,9 @@ class ScriptInterpreter(CommandsMixin):
def revert(self):
"""Revert installation in case of an error"""
logger.info("Cancelling installation of %s", self.game_name)
if self.runner_name.startswith("wine"):
self.task({"name": "winekill"})
self.cancelled = True
if self.abort_current_task: