Skip to content

Commit

Permalink
Mitigating a FaultException in Mechanism.Encode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Tsurko committed Jun 7, 2024
1 parent 915223d commit d8731bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetMQ/Core/SessionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void AttachPipe(Pipe pipe)
/// <returns>true if the Msg is successfully sent</returns>
public virtual PullMsgResult PullMsg(ref Msg msg)
{
if (m_pipe == null || !m_pipe.Read(ref msg))
if (m_pipe == null || !m_pipe.Read(ref msg) || !msg.IsInitialised)
return PullMsgResult.Empty;
m_incompleteIn = msg.HasMore;

Expand Down

0 comments on commit d8731bd

Please sign in to comment.