diff --git a/src/context.zig b/src/context.zig index 2250187..1aa643a 100644 --- a/src/context.zig +++ b/src/context.zig @@ -505,7 +505,7 @@ pub const Context = struct { error.BrokenPipe => { log.warn("cannot send message, dest probably closed the connection ({})", .{err}); try self.close(i); - return Event.init(Event.Type.ERROR, i, fd.fd, null); + return Event.init(Event.Type.DISCONNECTION, i, fd.fd, null); }, else => { log.warn("unmanaged error while sending a message ({})", .{err});