Skip to content

Commit

Permalink
fire send in a go routine to prevent blocking other requests
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 25, 2020
1 parent 1d00f2f commit 6a9f5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func (t *tun) process() {
}

// send the message
t.sendTo(sendTo, msg)
go t.sendTo(sendTo, msg)
case <-t.closed:
return
}
Expand Down

0 comments on commit 6a9f5fa

Please sign in to comment.