Skip to content

Commit

Permalink
Fix a typo that prevented protocol options upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Hoguin committed Feb 1, 2012
1 parent 2c0c85c commit 096f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cowboy_listener.erl
Expand Up @@ -114,7 +114,7 @@ handle_call({add_connection, Pool, ConnPid, AccOptsVsn}, From, State=#state{
{NbConns, Pools2} = add_pid(ConnPid, Pool, Pools, ReqsTable),
State2 = State#state{req_pools=Pools2},
if AccOptsVsn =/= LisOptsVsn ->
{reply, {ugprade, ProtoOpts, LisOptsVsn}, State2};
{reply, {upgrade, ProtoOpts, LisOptsVsn}, State2};
NbConns > MaxConns ->
Queue2 = queue:in(From, Queue),
{noreply, State2#state{queue=Queue2}};
Expand Down

0 comments on commit 096f40b

Please sign in to comment.