Commit 7057cbe
committed
Fix clearinterval() usage
Stop saving a whole Timeout object into globalState, which I assumed was
an intenger (based on what setInterval returns in vanilla JavaScript).
You can exit from a looping function by calling clearInterval(this)
instead.
Resolves mysterious "circular structure" error messages, allows payload
to confirm receipt and completion of 'exit' command to Mythic.1 parent 6869cf9 commit 7057cbe
1 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
152 | | - | |
153 | 150 | | |
154 | 151 | | |
155 | | - | |
156 | | - | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
160 | | - | |
| 155 | + | |
161 | 156 | | |
162 | 157 | | |
163 | 158 | | |
| |||
0 commit comments