mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
remove an unnecessary condition
This commit is contained in:
+1
-4
@@ -308,10 +308,7 @@ func (s *Session) sendLoop() {
|
||||
select {
|
||||
case <-s.die:
|
||||
return
|
||||
case request, ok := <-s.writes:
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
case request := <-s.writes:
|
||||
buf[0] = request.frame.ver
|
||||
buf[1] = request.frame.cmd
|
||||
binary.LittleEndian.PutUint16(buf[2:], uint16(len(request.frame.data)))
|
||||
|
||||
Reference in New Issue
Block a user