mirror of
https://github.com/fatedier/frp.git
synced 2025-06-16 08:08:20 +00:00
remove unnecessary code
This commit is contained in:
parent
57eba762d8
commit
5e08b2e9f6
@ -54,10 +54,6 @@ func (d *Dispatcher) sendLoop() {
|
||||
for {
|
||||
select {
|
||||
case <-d.doneCh:
|
||||
// need to clear all message
|
||||
// Otherwise, it will memory leak when sendCh is full.
|
||||
for range d.sendCh {
|
||||
}
|
||||
return
|
||||
case m := <-d.sendCh:
|
||||
_ = WriteMsg(d.rw, m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user