Skip to content

Commit

Permalink
n2o_nitro: properly handle direct io
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ki committed Jun 3, 2019
1 parent 36c7fd1 commit 8bf41a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protos/n2o_nitro.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit 8bf41a8

Please sign in to comment.