Browse Source

refactor(main): close peer server first

Cenk Alti 11 years ago
parent
commit
ccb960f47f
1 changed files with 1 additions and 1 deletions
  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 {