Skip to content

Commit 80b53f4

Browse files
committed
Fix a bug in VoiceAttack event execution, roll to 4.1.6.
1 parent feb5569 commit 80b53f4

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Full details of the variables available for each noted event, and VoiceAttack integrations, are available in the individual [event pages](https://github.com/EDCD/EDDI/wiki/Events).
44

5+
## 4.1.6
6+
* VoiceAttack
7+
* Fixed a bug prevent execution of events in VoiceAttack.
8+
59
## 4.1.5
610
* Core
711
* Added support for the Panther Clipper Mk. II.

Installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "EDDI"
5-
#define MyAppVersion "4.1.5"
5+
#define MyAppVersion "4.1.6"
66
#define MyAppPublisher "Elite Dangerous Community Developers (EDCD)"
77
#define MyAppURL "https://github.com/EDCD/EDDI/"
88
#define MyAppExeName "EDDI.exe"

Utilities/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class Constants
99
{
1010
public const string EDDI_NAME = "EDDI";
1111
public const string EDDI_URL_PROTOCOL = "eddi";
12-
public static Version EDDI_VERSION = new Version( 4, 1, 5 );
12+
public static Version EDDI_VERSION = new Version( 4, 1, 6 );
1313
public const string EDDI_SERVER_URL = "https://edcd.github.io/EDDP/";
1414
public static readonly string EDDI_SYSTEM_MUTEX_NAME = $"{EDDI_SERVER_URL}/{EDDI_NAME}/{Environment.GetEnvironmentVariable("UserName")}";
1515

VoiceAttackResponder/VoiceAttackEventHandler.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ public VoiceAttackEventHandler()
2626
public void Handle ( Event theEvent )
2727
{
2828
if ( theEvent is null || consumerCancellationTS.IsCancellationRequested ) { return; }
29-
var taskQueue = taskQueues.GetOrAdd(theEvent.type, _ => new TaskQueue<Event>());
30-
taskQueue.StartOrRestart( async () => await dequeueEvents( taskQueue ), consumerCancellationTS.Token );
29+
var taskQueue = taskQueues.GetOrAdd(theEvent.type, key => new TaskQueue<Event>());
30+
if ( taskQueue.TryAdd( theEvent ) )
31+
{
32+
taskQueue.StartOrRestart( async () => await dequeueEvents( taskQueue ), consumerCancellationTS.Token );
33+
}
3134
}
3235

3336
private async Task dequeueEvents ( TaskQueue<Event> eventQueue )

0 commit comments

Comments
 (0)