Fix a typo

pull/168/head
v2ray 2016-05-09 08:04:55 -07:00
parent 2739cf2f4a
commit 9b511fb071
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}