Browse Source

case clause will never match if a timeout is specified

klaar 14 years ago
parent
commit
aab2dd0467
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gproc.erl

+ 1 - 1
src/gproc.erl

@@ -314,7 +314,7 @@ request_wait({n,C,_} = Key, Timeout) when C==l; C==g ->
         {gproc, WRef, registered, {_K, Pid, V}} ->
 	    case Timeout of
 		no_timer -> ignore;
-		TRef -> erlang:cancel_timer(TRef)
+		_ -> erlang:cancel_timer(TRef)
 	    end,
             {Pid, V};
         {timeout, TRef, gproc_timeout} ->