Parcourir la source

refactor(main): close peer server first

Cenk Alti il y a 12 ans
Parent
commit
ccb960f47f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      etcd/etcd.go

+ 1 - 1
etcd/etcd.go

@@ -223,8 +223,8 @@ func (e *Etcd) Run() {
 }
 
 func (e *Etcd) Stop() {
-	e.listener.Close()
 	e.peerListener.Close()
+	e.listener.Close()
 }
 
 func (e *Etcd) StopNotify() chan bool {