diff --git a/src/providers/filepool.ts b/src/providers/filepool.ts index da1208c79..a27518484 100644 --- a/src/providers/filepool.ts +++ b/src/providers/filepool.ts @@ -2269,8 +2269,8 @@ export class CoreFilepoolProvider { * * @return {Promise} Resolved on success. Rejected on failure. */ - protected processImportantQueueItem() : void { - this.appDB.getRecords(this.QUEUE_TABLE, null, 'priority DESC, added ASC', null, 0, 1).then((items) => { + protected processImportantQueueItem() : Promise { + return this.appDB.getRecords(this.QUEUE_TABLE, null, 'priority DESC, added ASC', null, 0, 1).then((items) => { let item = items.pop(); if (!item) { return Promise.reject(this.ERR_QUEUE_IS_EMPTY);