Просмотр исходного кода

refactor(main): close peer server first

Cenk Alti 12 лет назад
Родитель
Сommit
ccb960f47f
1 измененных файлов с 1 добавлено и 1 удалено
  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 {