Skip to content

Commit

Permalink
Remove invalid assertion. (#13)
Browse files Browse the repository at this point in the history
Motivation:

It is possible to receive the dataReceived callback after we've called
cancel, mostly because there may be such a block in place in the queue
before that cancel call fires. We should tolerate that.

Modifications:

Removed the invalid assertion.

Result:

Fewer failures.
  • Loading branch information
Lukasa authored and weissi committed Nov 15, 2018
1 parent 833b152 commit 73f758b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/NIOTransportServices/NIOTSConnectionChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ extension NIOTSConnectionChannel {
guard self.isActive else {
// If we're already not active, we aren't going to process any of this: it's likely the result of an extra
// read somewhere along the line.
assert(content == nil)
return
}

Expand Down

0 comments on commit 73f758b

Please sign in to comment.