mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
no op when new timeout setting is the same as previous
This commit is contained in:
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
Block a user