aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_app.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_app.erl b/src/cowboy_app.erl
index 0ff08f0..c7cefe4 100644
--- a/src/cowboy_app.erl
+++ b/src/cowboy_app.erl
@@ -46,7 +46,7 @@ profile_output() ->
consider_profiling() ->
case application:get_env(profile) of
{ok, true} ->
- eprof:start(),
+ {ok, _Pid} = eprof:start(),
eprof:start_profiling([self()]);
_ ->
not_profiling