[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/master] Redundant close



commit ed60c74686b00fa92270391caecce5d368441766
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date:   Sun Mar 20 08:48:49 2016 -0700

    Redundant close
---
 client/snowflake.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/client/snowflake.go b/client/snowflake.go
index 15f9b37..c78eed0 100644
--- a/client/snowflake.go
+++ b/client/snowflake.go
@@ -55,7 +55,6 @@ type SnowflakeChannel interface {
 
 // Initialize a WebRTC Connection.
 func dialWebRTC() (*webRTCConn, error) {
-
 	// TODO: [#3] Fetch ICE server information from Broker.
 	// TODO: [#18] Consider TURN servers here too.
 	config := webrtc.NewConfiguration(iceServers...)
@@ -92,7 +91,6 @@ func handler(conn *pt.SocksConn) error {
 		return err
 	}
 	defer remote.Close()
-	defer conn.Close()
 	webrtcRemote = remote
 
 	err = conn.Grant(&net.TCPAddr{IP: net.IPv4zero, Port: 0})

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits