Browse Source

fallback to generic message handler in auth state

Anton Lebedevich 13 years ago
parent
commit
22cb660938
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/pgsql_sock.erl

+ 4 - 1
src/pgsql_sock.erl

@@ -193,7 +193,10 @@ auth({error, E}, State) ->
 
 auth(timeout, State) ->
     Error = {error, timeout},
-    {stop, Error, reply(State, Error)}.
+    {stop, Error, reply(State, Error)};
+
+auth(Other, State) ->
+    on_message(Other, State).
 
 %% BackendKeyData
 initializing({$K, <<Pid:?int32, Key:?int32>>}, State) ->