Browse Source

Support Stop listener

Shelikhoo 9 năm trước cách đây
mục cha
commit
273c8f6c57
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {