diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 18:43:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 18:43:06 +0900 |
| commit | 7403f38fb43b0ad747236061a591cbf94e198ba6 (patch) | |
| tree | bcfb900e3b9b19fb5ce7928a5f075b5d16b02e1e /src/queue/processors/http/deliver.ts | |
| parent | wip (diff) | |
| download | misskey-7403f38fb43b0ad747236061a591cbf94e198ba6.tar.gz misskey-7403f38fb43b0ad747236061a591cbf94e198ba6.tar.bz2 misskey-7403f38fb43b0ad747236061a591cbf94e198ba6.zip | |
wip
Diffstat (limited to 'src/queue/processors/http/deliver.ts')
| -rw-r--r-- | src/queue/processors/http/deliver.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/queue/processors/http/deliver.ts b/src/queue/processors/http/deliver.ts index 1700063a5d..da7e8bc368 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -3,5 +3,12 @@ import * as kue from 'kue'; import request from '../../../remote/request'; export default async (job: kue.Job, done): Promise<void> => { - await request(job.data.user, job.data.to, job.data.content); + try { + await request(job.data.user, job.data.to, job.data.content); + done(); + } catch (e) { + console.warn(`deliver failed: ${e}`); + + done(e); + } }; |