mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-23 01:27:13 +02:00
remove context timeout
This commit is contained in:
@@ -1274,8 +1274,8 @@ func (p *prog) reinitializeOSResolver(networkChange bool) {
|
|||||||
p.recoveryCancel()
|
p.recoveryCancel()
|
||||||
p.recoveryCancel = nil
|
p.recoveryCancel = nil
|
||||||
}
|
}
|
||||||
// Create a new context (with a timeout) for this recovery wait.
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
p.recoveryCancel = cancel
|
p.recoveryCancel = cancel
|
||||||
p.recoveryCancelMu.Unlock()
|
p.recoveryCancelMu.Unlock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user