mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
Adds null check for worker
This commit is contained in:
@@ -47,7 +47,7 @@ namespace PepperDash.Essentials.Core.Utilities
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void StartSequence()
|
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");
|
Debug.Console(1, this, "Thread already running. Cannot Start Sequence");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user