|
|
@ -53,12 +53,5 @@ openSrv(WSrvName, Port, WsOpts) -> |
|
|
|
end. |
|
|
|
|
|
|
|
closeSrv(WSrvNameOrPort) -> |
|
|
|
WSrvName = |
|
|
|
case is_integer(WSrvNameOrPort) of |
|
|
|
true -> |
|
|
|
wSrvName(WSrvNameOrPort); |
|
|
|
_ -> |
|
|
|
WSrvNameOrPort |
|
|
|
end, |
|
|
|
supervisor:terminate_child(eWSrv_sup, WSrvName), |
|
|
|
supervisor:delete_child(eWSrv_sup, WSrvName). |
|
|
|
WSrvName = ?IIF(is_integer(WSrvNameOrPort), wSrvName(WSrvNameOrPort), WSrvNameOrPort), |
|
|
|
eNet:close(WSrvName). |