diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 7832725c9..b54f66b37 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -607,7 +607,7 @@ Tomahawk.PluginManager = { }, invoke: function (requestId, objectId, methodName, params ) { - this.objects[objectId][methodName](params).then(function (result) { + Promise.resolve(this.objects[objectId][methodName](params)).then(function (result) { if (typeof result === 'object') { Tomahawk.reportScriptJobResults({ requestId: requestId,