Skip to content

Commit 38eb785

Browse files
committed
Tau - don't start keepalive server if no daemon port passed
1 parent a2f88f3 commit 38eb785

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/server/beam/tau/lib/tau.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ use Application
2626

2727
# Although we don't use the supervisor name below directly,
2828
# it can be useful when debugging or introspecting the system.
29+
30+
if (daemon_port == -1) do
31+
Logger.info("Not starting keepalive server as no daemon port value was given")
32+
else
2933
:tau_keepalive.start_link(daemon_port)
34+
end
35+
3036
:tau_server_sup.start_link()
3137
end
3238

0 commit comments

Comments
 (0)