Minor fix.

This commit is contained in:
Mikunj 2019-05-27 09:54:20 +10:00
parent 8a1ef268c8
commit 58ead70eb3

View file

@ -86,8 +86,9 @@ import PromiseKit
// If it was a ping then don't send to the storage server
if (message.isPing) {
Logger.warn("[Loki] Failed to ping \(destination) - Marking contact as offline.")
error.isRetryable = false
throw error
let nserror = error as NSError
nserror.isRetryable = false
throw nserror
}
return sendThroughStorageServer()