diff options
author | Hans Nilsson <[email protected]> | 2018-02-26 16:53:57 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-03-16 20:14:57 +0100 |
commit | 1926844b8a34cf955d39eae986906d8c30522f41 (patch) | |
tree | cfb817dc17a2496e6deb8c403059ad3f6ed57a59 /lib/ssh/src/ssh_system_sup.erl | |
parent | 95d5f3022d6fa5aa74205c214b31f9b747530265 (diff) | |
download | otp-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.erl | 4 |
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. |