From b86f20da178e428b1cb541c1b81573c8737ac3e0 Mon Sep 17 00:00:00 2001 From: Nelson Ferreira Date: Sun, 26 Sep 2021 15:21:32 -0400 Subject: [PATCH] Also check the disconnect handler to really fix the error on suspend --- unite@hardpixel.eu/handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unite@hardpixel.eu/handlers.js b/unite@hardpixel.eu/handlers.js index f2abada..53b00ad 100644 --- a/unite@hardpixel.eu/handlers.js +++ b/unite@hardpixel.eu/handlers.js @@ -105,7 +105,7 @@ var Signals = class Signals { disconnect(key) { if (this.hasSignal(key)) { const data = this.signals.get(key) - if (data.object != null) { + if (data.object && data.object.signal_handler_disconnect) { data.object.disconnect(data.signalId) }