Skip to content

Commit

Permalink
Fix for #1813 - don't actually connect to a null endpoint (#2042)
Browse files Browse the repository at this point in the history
We log this, but then forgot to abort, woops. Actually bail in this case, no reason to rapidly issue sockets to nowhere.
  • Loading branch information
NickCraver authored Mar 17, 2022
1 parent 45b2ba1 commit d62b015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/StackExchange.Redis/PhysicalConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ internal async Task BeginConnectAsync(LogProxy log)
if (endpoint == null)
{
log?.WriteLine("No endpoint");
return;
}

Trace("Connecting...");
Expand Down

0 comments on commit d62b015

Please sign in to comment.