Skip to content

Commit

Permalink
Handle dropped connection in postgres subscriptions. (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
oakie authored Jul 31, 2023
1 parent 22c7ccd commit 780c751
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ async Task PollingQuery(ulong? position, CancellationToken cancellationToken) {
retryDelay *= 2;
}
catch (Exception e) {
IsDropped = true;
Log.WarnLog?.Log(e, "Dropped");
throw;
Dropped(DropReason.ServerError, e);
break;
}
}
}
Expand Down

0 comments on commit 780c751

Please sign in to comment.