Skip to content

Commit

Permalink
reply to call owner
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrek committed Sep 24, 2011
1 parent edd1c1f commit 0be28cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pgsql_sock.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ send(#state{mod = Mod, sock = Sock}, Data) ->
send(#state{mod = Mod, sock = Sock}, Type, Data) ->
Mod:send(Sock, pgsql_wire:encode(Type, Data)).

reply(#state{queue = Q} = State, Message) ->
{{value, Pid}, Q2} = queue:out(Q),
Pid ! Message,
State#state{queue = Q2}.

%% -- backend message handling --

%% AuthenticationOk
Expand Down

0 comments on commit 0be28cc

Please sign in to comment.