diff options
| author | Michael <[email protected]> | 2017-05-12 19:17:47 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-12 19:17:47 -0400 |
| commit | bded9d1250575e6b9824be9048ac7ac8669a303b (patch) | |
| tree | a0ef631584332088d243bacf4c87f959a821f3a3 /ShiftOS_TheReturn/AudioManager.cs | |
| parent | 2cede571ca23806b68344d9984c11eedaaea76e1 (diff) | |
| download | shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.gz shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.bz2 shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.zip | |
ShiftOS is a hydra.
You pop one bug off, 2,000 more grow in its place.
Diffstat (limited to 'ShiftOS_TheReturn/AudioManager.cs')
| -rw-r--r-- | ShiftOS_TheReturn/AudioManager.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs index a636497..c50bd24 100644 --- a/ShiftOS_TheReturn/AudioManager.cs +++ b/ShiftOS_TheReturn/AudioManager.cs @@ -47,9 +47,12 @@ namespace ShiftOS.Engine /// </summary> public static void Stop() { - _out?.Stop(); - _reader?.Dispose(); - _out?.Dispose(); + Desktop.InvokeOnWorkerThread(() => + { + _out?.Stop(); + _reader?.Dispose(); + _out?.Dispose(); + }); } /// <summary> |
