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

Reduce test log noise due to incorrect shutdown order

Rod Hynes 4 лет назад
Родитель
Сommit
7fe25fc5bc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      psiphon/common/tun/tun_test.go

+ 1 - 1
psiphon/common/tun/tun_test.go

@@ -531,8 +531,8 @@ func startTestClient(
 }
 }
 
 
 func (client *testClient) stop() {
 func (client *testClient) stop() {
-	client.unixConn.Close()
 	client.tunClient.Stop()
 	client.tunClient.Stop()
+	client.unixConn.Close()
 }
 }
 
 
 type testTCPServer struct {
 type testTCPServer struct {