Commit 6ed4dffbff885bed015b35b790234cb0724c20f5
1 parent
b113637873
Exists in
master
perbaikan resend delay
Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff
partner-komodo.js
... | ... | @@ -61,12 +61,8 @@ function start(options) { |
61 | 61 | function callbackReport(requestId, rc, message, options) { |
62 | 62 | aaa.callbackReportWithPushToMongoDb(requestId, rc, message); |
63 | 63 | |
64 | - if (!options || !options.task) { | |
65 | - return; | |
66 | - } | |
67 | - | |
68 | 64 | if (rc === '68') { |
69 | - resendDelay.register(options.task); | |
65 | + if (options && options.task) resendDelay.register(options.task); | |
70 | 66 | } else { |
71 | 67 | resendDelay.cancel(requestId); |
72 | 68 | } |