mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Ensure that promises always resolve, or that rejections are okay
This commit is contained in:
@@ -474,8 +474,10 @@
|
||||
});
|
||||
this.inProgressFetch = null;
|
||||
}.bind(this));
|
||||
}.bind(this)).catch(function(error) {
|
||||
console.log('fetchMessages error:', error && error.stack ? error.stack : error);
|
||||
this.inProgressFetch = null;
|
||||
}.bind(this));
|
||||
// TODO catch?
|
||||
|
||||
return this.inProgressFetch;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user