Skip to content

Commit

Permalink
Merge commit 'e57667a3a5cc9e6fed3a5b5bdc6661b58e2828b3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Torres committed Aug 12, 2011
2 parents e169114 + e57667a commit 741272c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/poolboy.erl
Expand Up @@ -17,8 +17,12 @@ checkout(Pool) ->
gen_fsm:sync_send_event(Pool, checkout).

start_link(Args) ->
Name = proplists:get_value(name, Args),
gen_fsm:start_link(Name, ?MODULE, Args, []).
case proplists:get_value(name, Args) of
undefined ->
gen_fsm:start_link(?MODULE, Args, []);
Name ->
gen_fsm:start_link(Name, ?MODULE, Args, [])
end.

init(Args) ->
process_flag(trap_exit, true),
Expand Down

0 comments on commit 741272c

Please sign in to comment.