Skip to content

Commit

Permalink
Revert "avoid crash in receiveRequest"
Browse files Browse the repository at this point in the history
  • Loading branch information
hiratake55 authored Mar 9, 2024
1 parent 6a869b9 commit 996d440
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 996d440

Please sign in to comment.