avoid exception when cooja runs in testmode
This commit is contained in:
parent
d6dc216e02
commit
34e7de389c
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ public class LogScriptEngine {
|
|||
/* Only called from the simulation loop */
|
||||
private void stepScript() {
|
||||
/* Release script - halt simulation */
|
||||
if (semaphoreScript == null || semaphoreSim == null) {
|
||||
return;
|
||||
}
|
||||
semaphoreScript.release();
|
||||
|
||||
/* ... script executing ... */
|
||||
|
|
Loading…
Reference in a new issue