mirror of https://github.com/v2ray/v2ray-core
no op when new timeout setting is the same as previous
parent
30ed9fdddc
commit
c74091453c
|
@ -33,6 +33,9 @@ func (reader *TimeOutReader) GetTimeOut() int {
|
|||
}
|
||||
|
||||
func (reader *TimeOutReader) SetTimeOut(value int) {
|
||||
if value == reader.timeout {
|
||||
return
|
||||
}
|
||||
reader.timeout = value
|
||||
if value > 0 {
|
||||
reader.worker = &timedReaderWorker{
|
||||
|
|
Loading…
Reference in New Issue