summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/threadsparser.tac
diff options
context:
space:
mode:
Diffstat (limited to 'ds9/parsers/threadsparser.tac')
-rw-r--r--ds9/parsers/threadsparser.tac2
1 files changed, 1 insertions, 1 deletions
diff --git a/ds9/parsers/threadsparser.tac b/ds9/parsers/threadsparser.tac
index 78e0d90..a34d786 100644
--- a/ds9/parsers/threadsparser.tac
+++ b/ds9/parsers/threadsparser.tac
@@ -10,7 +10,7 @@
%%
command : threads
- | threads {yyclearin; YYACCEPT} STRING_
+ | threads {global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT}} STRING_
;
threads : INT_ {ProcessCmdSet ds9 threads $1 ChangeThreads}