Skip to content

Commit fe8848a

Browse files
refactor/class c to enum (#509)
* RTCSessionState * subscriber enums * socket enums * remove transport constants * ua status and error * fix type passes * run formatter * fix non relative imports --------- Co-authored-by: Victor Uvarov <victoruvarov23@gmail.com>
1 parent 014d866 commit fe8848a

File tree

8 files changed

+308
-314
lines changed

8 files changed

+308
-314
lines changed

lib/src/request_sender.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import 'transactions/ack_client.dart';
99
import 'transactions/invite_client.dart';
1010
import 'transactions/non_invite_client.dart';
1111
import 'transactions/transaction_base.dart';
12-
import 'ua.dart' as UAC;
1312
import 'ua.dart';
1413

1514
// Default event handlers.
@@ -25,7 +24,7 @@ class RequestSender {
2524
_staled = false;
2625

2726
// If ua is in closing process or even closed just allow sending Bye and ACK.
28-
if (ua.status == UAC.C.STATUS_USER_CLOSED &&
27+
if (ua.status == UAStatus.userClosed &&
2928
(_method != SipMethod.BYE || _method != SipMethod.ACK)) {
3029
_eventHandlers.emit(EventOnTransportError());
3130
}

0 commit comments

Comments
 (0)