diff --git a/src/NetMQ/Core/IOObject.cs b/src/NetMQ/Core/IOObject.cs index dfc3071b..fc4e4ca2 100644 --- a/src/NetMQ/Core/IOObject.cs +++ b/src/NetMQ/Core/IOObject.cs @@ -125,8 +125,7 @@ public virtual void OutCompleted(SocketError socketError, int bytesTransferred) /// an integer used to identify the timer public virtual void TimerEvent(int id) { - Assumes.NotNull(m_handler); - m_handler.TimerEvent(id); + m_handler?.TimerEvent(id); } public void AddTimer(long timeout, int id)