File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed
Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -964,9 +964,7 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
964964 })
965965 ..on < SignalDisconnectedEvent > ((event) async {
966966 logger.fine ('Signal disconnected ${event .reason }' );
967- if ((event.reason == DisconnectReason .disconnected ||
968- event.reason == DisconnectReason .noInternetConnection) &&
969- ! _isClosed) {
967+ if (event.reason == DisconnectReason .disconnected && ! _isClosed) {
970968 await handleDisconnect (ClientDisconnectReason .signal);
971969 } else {
972970 events.emit (EngineDisconnectedEvent (
Original file line number Diff line number Diff line change @@ -116,17 +116,10 @@ class SignalClient extends Disposable with EventsEmittable<SignalEvent> {
116116 }
117117 });
118118
119- /// If there is no internet connection, emit [SignalDisconnectedEvent]
120119 if (_connectivityResult.contains (ConnectivityResult .none)) {
121120 logger.warning ('no internet connection' );
122- events.emit (SignalDisconnectedEvent (
123- reason: DisconnectReason .noInternetConnection));
124- if (! reconnect) {
125- throw ConnectException ('no internet connection' ,
126- reason: ConnectionErrorReason .InternalError , statusCode: 503 );
127- } else {
128- return ;
129- }
121+ throw ConnectException ('no internet connection' ,
122+ reason: ConnectionErrorReason .InternalError , statusCode: 503 );
130123 }
131124 }
132125
Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ enum DisconnectReason {
115115 joinFailure,
116116 disconnected,
117117 signalingConnectionFailure,
118- noInternetConnection,
119118 reconnectAttemptsExceeded,
120119}
121120
You can’t perform that action at this time.
0 commit comments