mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
Adds null check for _worker before checking thread state
This commit is contained in:
parent
c5aef18943
commit
00589488ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue