DescriptionProxyResolverMac: invalidate resolver source.
Instead of calling CFRunLoopRemoveSource, call CFRunLoopSourceInvalidate. Since
the runloop is bound to the thread and threads are reused between resolutions,
if the internals of the proxy resolver create any deferred tasks on the runloop,
those tasks could refer to the removed-and-destroyed source when the runloop is
next run. Instead, we call Invalidate, which should prevent any deferred tasks
from running.
BUG=166387
Committed: https://crrev.com/824907ba81b615ccbbc35c51bc9b937f3d99a5f2
Cr-Commit-Position: refs/heads/master@{#318233}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (2 generated)
|