diff --git a/src/ipc/connection.cr b/src/ipc/connection.cr index a583f1b..7e39412 100644 --- a/src/ipc/connection.cr +++ b/src/ipc/connection.cr @@ -137,7 +137,7 @@ class IPC::Connections end end - def wait_event(server : IPC::Connection | Nil, &block) : Tuple(LibIPC::EventType, IPC::Message, IPC::Connection) + def wait_event(server : IPC::Connection | Nil, &block) : Tuple(LibIPC::EventType, IPC::Message, IPC::Connection) | Tuple(LibIPC::EventType, Nil, Nil) event = LibIPC::Event.new serverp = nil