From a05191e112224b9a2b42345fedd940d6bf958223 Mon Sep 17 00:00:00 2001 From: badrAZ Date: Wed, 6 May 2020 14:23:04 +0200 Subject: [PATCH] fix(xo-server/proxies): remove duplicated license unbind (#4977) On destroying a proxy, the license will be unbound twice: on the proxy destruction and on the proxy unregistration. These unbinds will lead to an error which will be displayed in the console and will have no side effects on the process. This error will not be visible by users. --- packages/xo-server/src/xo-mixins/proxies.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/xo-server/src/xo-mixins/proxies.js b/packages/xo-server/src/xo-mixins/proxies.js index 76c5f5dd0..6bc6d13fc 100644 --- a/packages/xo-server/src/xo-mixins/proxies.js +++ b/packages/xo-server/src/xo-mixins/proxies.js @@ -110,13 +110,6 @@ export default class Proxy { throw error } } - - this._app - .unbindLicense({ - boundObjectId: vmUuid, - productId: this._xoProxyConf.licenseProductId, - }) - .catch(log.warn) } return this.unregisterProxy(id) }