Browse Source

etcd: fix transporter leak in test

Xiang Li 11 years ago
parent
commit
638f36956b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcd/etcd.go

+ 1 - 1
etcd/etcd.go

@@ -158,8 +158,8 @@ func (s *Server) Stop() {
 		return
 	}
 	s.mode = stop
-	close(s.stop)
 	s.t.stop()
+	close(s.stop)
 }
 
 func (s *Server) Bootstrap() {