Skip to content

Commit

Permalink
忽略
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Nov 30, 2022
1 parent a7554f0 commit 7b31749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MQTTClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public async Task<bool> ConnectAsync()
{
try
{
_logger.LogWarning($"CONNECTING FAILED,{e.Reason}-{e.ReasonString}");
Thread.Sleep(TimeSpan.FromSeconds(60));
await Client.ConnectAsync(clientOptions);
}
catch (Exception exception)
Expand Down

0 comments on commit 7b31749

Please sign in to comment.