Skip to content

Commit

Permalink
Ignore processing CommandType.Done with null Destination
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatthey committed Jul 29, 2024
1 parent fb96e78 commit 47bdc29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/NetMQ/Core/SocketBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1261,8 +1261,7 @@ private void ProcessCommands(int timeout, bool throttle, CancellationToken cance
// Process all the commands available at the moment.
while (found)
{
Assumes.NotNull(command.Destination);
command.Destination.ProcessCommand(command);
command.Destination?.ProcessCommand(command);
found = m_mailbox.TryRecv(0, out command);
}

Expand Down

0 comments on commit 47bdc29

Please sign in to comment.