Przeglądaj źródła

Fix bugs in fab2b6a1

Rod Hynes 6 lat temu
rodzic
commit
091a7803d6
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      psiphon/server/tunnelServer.go

+ 3 - 2
psiphon/server/tunnelServer.go

@@ -993,10 +993,11 @@ func (sshServer *sshServer) handleClient(
 				})
 			}
 			io.Copy(ioutil.Discard, clientConn)
+			clientConn.Close()
 			afterFunc.Stop()
-		}
 
-		return
+			return
+		}
 	}
 
 	geoIPData := sshServer.support.GeoIPService.Lookup(