summaryrefslogtreecommitdiffstats
path: root/WhisperNet/CaptureCallbacks.cs
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-18 19:55:25 +0100
committerKonstantin <const@const.me>2023-01-18 19:55:25 +0100
commitad097a744759c6a78e1b33ea9d2b4b2af01c529d (patch)
treeda738750a40790a2f2553b3ebce29b08027ea8df /WhisperNet/CaptureCallbacks.cs
parent72b03a0d899e0de6a39be278b0efc31570cd7d59 (diff)
Consistent cancellation API across the library: S_OK = continue, S_FALSE = stop
Diffstat (limited to 'WhisperNet/CaptureCallbacks.cs')
-rw-r--r--WhisperNet/CaptureCallbacks.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/WhisperNet/CaptureCallbacks.cs b/WhisperNet/CaptureCallbacks.cs
index 26013f9..f2528e4 100644
--- a/WhisperNet/CaptureCallbacks.cs
+++ b/WhisperNet/CaptureCallbacks.cs
@@ -19,7 +19,7 @@ namespace Whisper
{
try
{
- return shouldCancel( sender ) ? S_OK : S_FALSE;
+ return shouldCancel( sender ) ? S_FALSE : S_OK;
}
catch( Exception ex )
{