Anton Lebedevich 13 years ago
parent
commit
7e47b86018
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pgsql_sock.erl

+ 1 - 1
src/pgsql_sock.erl

@@ -106,7 +106,7 @@ handle_call(Command, From, State) ->
     Req = {{call, From}, Command},
     Req = {{call, From}, Command},
     command(Command, State#state{queue = queue:in(Req, Q)}).
     command(Command, State#state{queue = queue:in(Req, Q)}).
 
 
-handle_cast(Req = {{From, Ref}, Command}, State) ->
+handle_cast({{From, Ref}, Command}, State) ->
     #state{queue = Q} = State,
     #state{queue = Q} = State,
     Req = {{cast, From, Ref}, Command},
     Req = {{cast, From, Ref}, Command},
     command(Command, State#state{queue = queue:in(Req, Q)});
     command(Command, State#state{queue = queue:in(Req, Q)});