Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Apr 28, 2020

Motivation:

In an earlier patch for disconnect messages I accidentally missed the
fact that .noMessage implies that more work can be done, and so is a
bad return type for the disconnected states.

Modifications:

Disconnected states should return nil.

Result:

No infinite loops when peers go away!

Motivation:

In an earlier patch for disconnect messages I accidentally missed the
fact that `.noMessage` implies that more work can be done, and so is a
bad return type for the disconnected states.

Modifications:

Disconnected states should return `nil`.

Result:

No infinite loops when peers go away!
@Lukasa Lukasa requested a review from artemredkin April 28, 2020 16:50
@Lukasa Lukasa merged commit e5baade into apple:master Apr 29, 2020
@Lukasa Lukasa deleted the cb-disconnect-spinloop branch April 29, 2020 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants