aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_system_sup.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-02-26 16:53:57 +0100
committerHans Nilsson <[email protected]>2018-03-16 20:14:57 +0100
commit1926844b8a34cf955d39eae986906d8c30522f41 (patch)
treecfb817dc17a2496e6deb8c403059ad3f6ed57a59 /lib/ssh/src/ssh_system_sup.erl
parent95d5f3022d6fa5aa74205c214b31f9b747530265 (diff)
downloadotp-1926844b8a34cf955d39eae986906d8c30522f41.tar.gz
otp-1926844b8a34cf955d39eae986906d8c30522f41.tar.bz2
otp-1926844b8a34cf955d39eae986906d8c30522f41.zip
ssh: Remove spawn in ssh_system_sup:stop_system/1
Diffstat (limited to 'lib/ssh/src/ssh_system_sup.erl')
-rw-r--r--lib/ssh/src/ssh_system_sup.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_system_sup.erl b/lib/ssh/src/ssh_system_sup.erl
index 17f990c5d8..469f9560e9 100644
--- a/lib/ssh/src/ssh_system_sup.erl
+++ b/lib/ssh/src/ssh_system_sup.erl
@@ -88,11 +88,11 @@ stop_listener(Address, Port, Profile) ->
stop_system(SysSup) ->
- spawn(fun() -> sshd_sup:stop_child(SysSup) end),
+ catch sshd_sup:stop_child(SysSup),
ok.
stop_system(Address, Port, Profile) ->
- spawn(fun() -> sshd_sup:stop_child(Address, Port, Profile) end),
+ catch sshd_sup:stop_child(Address, Port, Profile),
ok.