Permalink
Browse files

php:start() should return ok if already started

  • Loading branch information...
1 parent a557ef8 commit 787dc9467997565af3edfa7f3350fbe0d96b1f2f root committed Jul 14, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/php.erl
View
@@ -84,7 +84,12 @@
%% @doc Starts the PHP application, supervisor, a number of workers,
%% and this API server module with the options set in php.app.
start() ->
- application:start(php).
+ case application:start(php) of
+ {error, {already_started, php}} ->
+ ok;
+ Other ->
+ Other
+ end.
%% @spec stop() -> ok
%% @doc Stops the PHP application and everything it started.

0 comments on commit 787dc94

Please sign in to comment.