mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Fix a typo
This commit is contained in:
parent
2739cf2f4a
commit
9b511fb071
@ -97,7 +97,7 @@ func (this *Stream) TryWriteOnce(data *alloc.Buffer) error {
|
||||
select {
|
||||
case this.buffer <- data:
|
||||
return nil
|
||||
case <-time.Tick(time.Second):
|
||||
case <-time.After(16 * time.Second):
|
||||
return ErrorIOTimeout
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user