Skip to content

Commit c8e15e3

Browse files
committed
Foo
1 parent 0925f3b commit c8e15e3

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

pkgs/cupertino_http/lib/src/cupertino_web_socket.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ class ConnectionException extends WebSocketException {
5757
/// > can be used to adapt a [CupertinoWebSocket] into a
5858
/// > [`WebSocketChannel`](https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel-class.html).
5959
class CupertinoWebSocket implements WebSocket {
60-
final closeCompleter = Completer<void>();
61-
6260
/// Create a new WebSocket connection using the
6361
/// [NSURLSessionWebSocketTask API](https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
6462
///
@@ -108,7 +106,6 @@ class CupertinoWebSocket implements WebSocket {
108106
print('onWebSocketTaskClosed');
109107
assert(readyCompleter.isCompleted);
110108
webSocket._connectionClosed(closeCode, reason);
111-
webSocket.closeCompleter.complete();
112109
},
113110
onComplete: (session, task, error) {
114111
print(
@@ -275,7 +272,6 @@ class CupertinoWebSocket implements WebSocket {
275272
} else {
276273
_task.cancel();
277274
}
278-
await closeCompleter.future;
279275
}
280276
}
281277

pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:io';
65
import 'dart:typed_data';
76

87
import 'package:async/async.dart';

0 commit comments

Comments
 (0)