Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile.
Attach a file by drag & drop or click to upload