mirror of
https://github.com/fatedier/frp.git
synced 2025-08-03 12:24:43 +00:00
remove unnecessary code
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user