mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-11 11:46:37 +08:00
添加强制断开链接
This commit is contained in:
@@ -274,6 +274,9 @@ func pauseServices(req pauseServicesRequest) error {
|
|||||||
return errors.New(fmt.Sprintf("service %s configuration not found", stp.name))
|
return errors.New(fmt.Sprintf("service %s configuration not found", stp.name))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 暂停服务
|
||||||
|
stp.service.Close()
|
||||||
|
|
||||||
// 强制断开端口的所有连接
|
// 强制断开端口的所有连接
|
||||||
if serviceConfig.Addr != "" {
|
if serviceConfig.Addr != "" {
|
||||||
_ = kill.ForceClosePortConnections(serviceConfig.Addr)
|
_ = kill.ForceClosePortConnections(serviceConfig.Addr)
|
||||||
|
|||||||
Reference in New Issue
Block a user