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.
This commit is contained in:
badrAZ 2020-05-06 14:23:04 +02:00 committed by GitHub
parent b8eeee1d5d
commit a05191e112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}