2
0

back to goroutine and added lock for get handshake

This commit is contained in:
Lucas Löffel
2018-10-09 14:26:17 +02:00
parent 2e0bb1fcd5
commit 7b4667c944
+2 -2
View File
@@ -247,10 +247,10 @@ func (rc *RecConn) Dial(urlStr string, reqHeader http.Header) {
rc.setDefaultDialer() rc.setDefaultDialer()
// Connect // Connect
rc.connect() go rc.connect()
// wait on first attempt // wait on first attempt
time.Sleep(rc.HandshakeTimeout) time.Sleep(rc.getHandshakeTimeout())
} }
// GetURL returns current connection url // GetURL returns current connection url