Skip to content

Commit ae58a18

Browse files
PerondasPerondasPerondascloudwebrtc
authored
Adds fixes to the grammar and rtc session (#317)
* Added default response to cancellation * Added flag to stop ConcurrentModificationError when stopping ua * update. * Fixed grammar * Added default reason to cancellation Co-authored-by: Perondas <114622@fhwn.ac.at> Co-authored-by: Perondas <Pperondas@gmail.com> Co-authored-by: cloudwebrtc <duanweiwei1982@gmail.com>
1 parent 2dfa308 commit ae58a18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/src/grammar_parser.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17187,7 +17187,7 @@ class GrammarParser {
1718717187
_failure(_expect83);
1718817188
}
1718917189
if (success) {
17190-
final $1 = $$;
17190+
final $1 = $$[2];
1719117191
final $start = startPos1;
1719217192
var pos0 = _startPos;
1719317193
$$ = ((offset, expires) {
@@ -17492,7 +17492,7 @@ class GrammarParser {
1749217492
if (!success && _cursor > _testing) {
1749317493
_failure(_expect114);
1749417494
}
17495-
return $$;
17495+
return data;
1749617496
}
1749717497

1749817498
dynamic _parse_substate_value() {
@@ -22477,7 +22477,7 @@ class GrammarParser {
2247722477
if (!success && _cursor > _testing) {
2247822478
_failure(_expect113);
2247922479
}
22480-
return $$;
22480+
return data;
2248122481
}
2248222482

2248322483
dynamic parse_Supported() {

lib/src/rtc_session.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ class RTCSession extends EventManager implements Owner {
759759
_is_canceled = true;
760760
_cancel_reason = cancel_reason;
761761
} else if (_status == C.STATUS_1XX_RECEIVED) {
762-
_request.cancel(cancel_reason);
762+
_request.cancel(cancel_reason ?? '');
763763
}
764764

765765
_status = C.STATUS_CANCELED;

0 commit comments

Comments
 (0)