diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 4cb08e7..c183d1d 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -580,7 +580,7 @@ mixin(tracer); asyncAwaitAny!(true, waiter)(timeout); - if (cancelled) return false; + if (cancelled || !m_context) return false; logTrace("Socket %s, read %s bytes: %s", m_socket, nbytes, status);