Skip to content

Commit deeb509

Browse files
committed
Update cupertino_web_socket.dart
1 parent a17034b commit deeb509

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/cupertino_http/lib/src/cupertino_web_socket.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ class CupertinoWebSocket implements WebSocket {
267267
if (code != null) {
268268
reason = reason ?? '';
269269
print('cancelWithCloseCode($code, $reason)');
270-
_task.cancelWithCloseCode(code, utf8.encode(reason).toNSData());
270+
_task.cancel();
271+
// _task.cancelWithCloseCode(code, utf8.encode(reason).toNSData());
271272
} else {
272273
_task.cancel();
273274
}

0 commit comments

Comments
 (0)