Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Early return
  • Loading branch information
CarnaViire committed Jul 21, 2022
commit a5fed6b829c18a0951679aeb3ed68112868fea58
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,13 @@ internal void HandleAltSvc(IEnumerable<string> altSvcHeaderValues, TimeSpan? res

lock (SyncObj)
{
if (_authorityExpireTimer == null && !_disposed) // _authorityExpireTimer is nulled out on disposal
if (_disposed)
{
// avoid creating or touching _authorityExpireTimer after disposal
return;
}

if (_authorityExpireTimer == null)
{
var thisRef = new WeakReference<HttpConnectionPool>(this);

Expand Down Expand Up @@ -1213,7 +1219,7 @@ internal void HandleAltSvc(IEnumerable<string> altSvcHeaderValues, TimeSpan? res
}
else
{
_authorityExpireTimer?.Change(nextAuthorityMaxAge, Timeout.InfiniteTimeSpan);
_authorityExpireTimer.Change(nextAuthorityMaxAge, Timeout.InfiniteTimeSpan);
}

_http3Authority = nextAuthority;
Expand Down