Ver Fonte

Support Stop listener

Shelikhoo há 9 anos atrás
pai
commit
273c8f6c57
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {