mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-01 13:55:05 +00:00
Adds null check for worker
This commit is contained in:
@@ -47,7 +47,7 @@ namespace PepperDash.Essentials.Core.Utilities
|
||||
/// </summary>
|
||||
public void StartSequence()
|
||||
{
|
||||
if (_worker.ThreadState == Thread.eThreadStates.ThreadRunning)
|
||||
if (_worker != null && _worker.ThreadState == Thread.eThreadStates.ThreadRunning)
|
||||
{
|
||||
Debug.Console(1, this, "Thread already running. Cannot Start Sequence");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user