Missing some .ConfigureAwait(false)
diff --git a/src/DotPulsar/Internal/ConsumerProcess.cs b/src/DotPulsar/Internal/ConsumerProcess.cs
index 6c3584a..3cc0bee 100644
--- a/src/DotPulsar/Internal/ConsumerProcess.cs
+++ b/src/DotPulsar/Internal/ConsumerProcess.cs
@@ -51,7 +51,7 @@
{
var formerState = _stateManager.SetState(ConsumerState.Faulted);
if (formerState != ConsumerState.Faulted)
- ActionQueue.Enqueue(async _ => await _consumer.ChannelFaulted(Exception!));
+ ActionQueue.Enqueue(async _ => await _consumer.ChannelFaulted(Exception!).ConfigureAwait(false));
return;
}
diff --git a/src/DotPulsar/Internal/ProducerProcess.cs b/src/DotPulsar/Internal/ProducerProcess.cs
index fc25af7..c61e331 100644
--- a/src/DotPulsar/Internal/ProducerProcess.cs
+++ b/src/DotPulsar/Internal/ProducerProcess.cs
@@ -1,4 +1,4 @@
-/*
+/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -50,7 +50,7 @@
var newState = Exception! is ProducerFencedException ? ProducerState.Fenced : ProducerState.Faulted;
var formerState = _stateManager.SetState(newState);
if (formerState != ProducerState.Faulted && formerState != ProducerState.Fenced)
- ActionQueue.Enqueue(async _ => await _producer.ChannelFaulted(Exception!));
+ ActionQueue.Enqueue(async _ => await _producer.ChannelFaulted(Exception!).ConfigureAwait(false));
return;
}
diff --git a/src/DotPulsar/Internal/ReaderProcess.cs b/src/DotPulsar/Internal/ReaderProcess.cs
index 09ad54f..9ab1cf3 100644
--- a/src/DotPulsar/Internal/ReaderProcess.cs
+++ b/src/DotPulsar/Internal/ReaderProcess.cs
@@ -48,7 +48,7 @@
{
var formerState = _stateManager.SetState(ReaderState.Faulted);
if (formerState != ReaderState.Faulted)
- ActionQueue.Enqueue(async _ => await _reader.ChannelFaulted(Exception!));
+ ActionQueue.Enqueue(async _ => await _reader.ChannelFaulted(Exception!).ConfigureAwait(false));
return;
}