Improved PM Handling #2
1 changed files with 2 additions and 2 deletions
4
rowbot
4
rowbot
|
@ -117,11 +117,11 @@ fi
|
||||||
###
|
###
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
if [[ -v $tls_pid || $tls = no ]]; then
|
if [[ -v tls_pid || $tls = no ]]; then
|
||||||
exec {in_sock}>&- {out_sock}>&- {log}>&-
|
exec {in_sock}>&- {out_sock}>&- {log}>&-
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -v $tls_pid ]]; then
|
if [[ -v tls_pid ]]; then
|
||||||
kill "$tls_pid"
|
kill "$tls_pid"
|
||||||
rm -rf "$sock_dir"
|
rm -rf "$sock_dir"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue