Skip to content

A full-featured download manager.

fix: engine shutdown

Dr_rOot65d45f69fe2a
diff --git a/src/main/core/EngineClient.js b/src/main/core/EngineClient.js
index 33f7a9e8..2329cd07 100644
--- a/src/main/core/EngineClient.js
+++ b/src/main/core/EngineClient.js
@@ -48,18 +48,18 @@ export default class EngineClient {
async call (method, ...args) {
return this.client.call(method, ...args).catch((err) => {
- logger.warn('[Motrix] call client fail:', err)
+ logger.warn('[Motrix] call client fail:', err.message)
})
}
- changeGlobalOption (options) {
+ async changeGlobalOption (options) {
logger.info('[Motrix] change engine global option:', options)
const args = formatOptionsForEngine(options)
return this.call('changeGlobalOption', args)
}
- shutdown (options = {}) {
+ async shutdown (options = {}) {
const { force = false } = options
const { secret } = this.options