diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 18:20:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 18:20:15 +0900 |
| commit | 79640d686104a301abe40b20519375350699f971 (patch) | |
| tree | 124e973c34adc60d999f5e86973f9650791954a5 /src/queue/processors | |
| parent | Fix (diff) | |
| download | sharkey-79640d686104a301abe40b20519375350699f971.tar.gz sharkey-79640d686104a301abe40b20519375350699f971.tar.bz2 sharkey-79640d686104a301abe40b20519375350699f971.zip | |
Fix bug
Diffstat (limited to 'src/queue/processors')
| -rw-r--r-- | src/queue/processors/http/deliver.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/queue/processors/http/deliver.ts b/src/queue/processors/http/deliver.ts index cf843fad07..0a228c1871 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -7,6 +7,7 @@ export default async (job: kue.Job, done): Promise<void> => { await request(job.data.user, job.data.to, job.data.content); done(); } catch (res) { + if (res.statusCode == null) return done(); if (res.statusCode >= 400 && res.statusCode < 500) { // HTTPステータスコード4xxはクライアントエラーであり、それはつまり // 何回再送しても成功することはないということなのでエラーにはしないでおく |