Explorar el Código

Support Stop listener

Shelikhoo hace 9 años
padre
commit
273c8f6c57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/internet/ws/hub.go

+ 1 - 1
transport/internet/ws/hub.go

@@ -169,7 +169,7 @@ func (this *WSListener) Close() error {
 	defer this.Unlock()
 	this.acccepting = false
 
-	log.Warning("WSListener: Yet to support close listening HTTP service")
+	this.listener.Stop()
 
 	close(this.awaitingConns)
 	for connErr := range this.awaitingConns {