From 8bf41a8b812f0836b547ad0be30c215e06f318bb Mon Sep 17 00:00:00 2001 From: Vlad Ki Date: Mon, 3 Jun 2019 17:36:29 +0300 Subject: [PATCH] n2o_nitro: properly handle direct io --- src/protos/n2o_nitro.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protos/n2o_nitro.erl b/src/protos/n2o_nitro.erl index 8b384150..2efc3b9a 100644 --- a/src/protos/n2o_nitro.erl +++ b/src/protos/n2o_nitro.erl @@ -33,8 +33,8 @@ info(#flush{data=Actions}, Req, State) -> info(#direct{data=Message}, Req, State) -> nitro:actions([]), {reply,{bert,case io(Message, State) of - {io,[],{stack,_}} = Io -> Io; - {io,[],Res} -> {io,[],{direct,Res}} end}, + {io,_,{stack,_}} = Io -> Io; + {io,Code,Res} -> {io,Code,{direct,Res}} end}, Req,State}; info(Message,Req,State) -> {unknown,Message,Req,State}.