Skip to content

Commit

Permalink
Fix SQL unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Oct 12, 2023
1 parent fc3955a commit a66fb59
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public abstract class SqlServerSubscriptionBase<T>(
if (_runner != null) await _runner.NoContext();
} catch (OperationCanceledException) {
// Nothing to do
} catch (InvalidOperationException e) when (e.Message.Contains("Operation cancelled by user.")) {
// It's a wrapped task cancelled exception
}
}

Expand Down

0 comments on commit a66fb59

Please sign in to comment.