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