no message

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

View File

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