no message

This commit is contained in:
arraykeys
2018-05-07 20:58:59 +08:00
parent 905c1eac63
commit ed4b8d11e3

View File

@ -111,7 +111,12 @@ func (s *SPS) StopService() {
}
}
for _, c := range s.userConns.Items() {
(*c.(*net.Conn)).Close()
if _,ok:=c.(*net.Conn);ok{
(*c.(*net.Conn)).Close()
}
if _,ok:=c.(**net.Conn);ok{
(*(*c.(**net.Conn))).Close()
}
}
}
func (s *SPS) Start(args interface{}, log *logger.Logger) (err error) {