Skip to content

Commit b7386b4

Browse files
committed
fix isclosed typo
1 parent 1a79c9d commit b7386b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TCP/Streams/TCPSocketSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public final class TCPSocketSource: Async.OutputStream {
142142
/// Called when the read source signals.
143143
private func readSourceSignal(isCancelled: Bool) {
144144
DEBUG("TCPSocketSource.readSourceSignal(\(isCancelled))")
145-
if !isCancelled {
145+
if isCancelled {
146146
// source is cancelled, we will never receive signals again
147147
cancelIsPending = true
148148
}

0 commit comments

Comments
 (0)