0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00

Revert "allow relay to overwrite connections"

This reverts commit 4840c33eee.
This commit is contained in:
Zack Scholl 2018-04-27 15:40:40 -07:00
parent 4840c33eee
commit 349e3a81c7

View file

@ -134,10 +134,10 @@ func (r *Relay) clientCommuncation(id int, connection net.Conn) {
switch connectionType { switch connectionType {
case "s": // sender connection case "s": // sender connection
// if r.connections.IsSenderConnected(key) { if r.connections.IsSenderConnected(key) {
// sendMessage("no", connection) sendMessage("no", connection)
// return return
// } }
r.connections.Lock() r.connections.Lock()
r.connections.metadata[key] = metaData r.connections.metadata[key] = metaData