Skip to content

Commit

Permalink
Merge pull request #2 from hiratake55/revert-1-issue/receive-request-…
Browse files Browse the repository at this point in the history
…crash-in-race-condition

Revert "avoid crash in receiveRequest"
  • Loading branch information
hiratake55 authored Mar 9, 2024
2 parents 6a869b9 + 996d440 commit 2a92cd6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/src/ua.dart
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,7 @@ class UA extends EventManager {
_findDialog(request.call_id!, request.from_tag!, request.to_tag!);

if (dialog != null) {
try {
dialog.receiveRequest(request);
} catch (e) {
logger.e('Error: failed to handle request. ${e.toString()}');
}
dialog.receiveRequest(request);
} else if (method == SipMethod.NOTIFY) {
Subscriber? sub = _findSubscriber(
request.call_id!, request.from_tag!, request.to_tag!);
Expand Down

0 comments on commit 2a92cd6

Please sign in to comment.