From f8735e59883cddf308a9b6519ba3e97a78cef431 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 26 May 2021 11:12:01 +0200 Subject: [PATCH] ui: datastore/Summary: change destroy listener by using beforedestroy instead of destroy (like we do everywhere else) to avoid race condition when the controller has already removed some handlers on destruction Signed-off-by: Dominik Csapak --- www/datastore/Summary.js | 2 +- www/tape/ChangerStatus.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js index 25a7b6e5..998b6297 100644 --- a/www/datastore/Summary.js +++ b/www/datastore/Summary.js @@ -86,7 +86,7 @@ Ext.define('PBS.DataStoreInfo', { listeners: { activate: 'startStore', - destroy: 'stopStore', + beforedestroy: 'stopStore', deactivate: 'stopStore', }, diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 51ba6ffa..0fad11b3 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -668,7 +668,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { listeners: { deactivate: 'cancelReload', - destroy: 'cancelReload', + beforedestroy: 'cancelReload', }, tbar: [