Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch error #1002

Merged
merged 2 commits into from
Dec 11, 2024
Merged

catch error #1002

merged 2 commits into from
Dec 11, 2024

Conversation

sammachin
Copy link
Contributor

No description provided.

@sammachin sammachin requested a review from davehorton December 11, 2024 17:10
@sammachin
Copy link
Contributor Author

fixes #996

await this.performAction({refer_status: 202, final_referred_call_status: status})
.catch((err) => {
this.logger.error(err, 'TaskSipRefer:exec - error performing action finalNotify');
this.notifyTaskDone();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this.notifyTaskDone() will be called twice in the case of an error, because it would have already been called from the line below. So I think this can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes we're not throwing a new error so it will continue through,

@davehorton davehorton merged commit 71d4c90 into main Dec 11, 2024
3 checks passed
@davehorton davehorton deleted the fix/996 branch December 11, 2024 17:34
davehorton pushed a commit that referenced this pull request Dec 13, 2024
* catch error

* remove notifyTaskDone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants