We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 929cc8d commit b0e0928Copy full SHA for b0e0928
1 file changed
src/p1_queue.erl
@@ -31,11 +31,14 @@
31
%%%===================================================================
32
-spec start(file:filename()) -> ok | {error, any()}.
33
start(Dir) ->
34
- application:ensure_all_started(p1_utils),
35
- case p1_file_queue:start(Dir) of
36
- {ok, _} -> ok;
37
- {error, {already_started, _}} -> ok;
38
- Err -> Err
+ case application:ensure_all_started(p1_utils) of
+ {ok, _} ->
+ case p1_file_queue:start(Dir) of
+ {ok, _} -> ok;
+ {error, {already_started, _}} -> ok;
39
+ Err -> Err
40
+ end;
41
42
end.
43
44
-spec stop() -> ok | {error, any()}.
0 commit comments