Also fixes a Dout line and initializes mState to 0 so that if ever set_state would be called first from a non-main thread then it will be larger (probably not needed currently).
Also fixes a Dout line and initializes mState to 0 so that if ever set_state would be called first from a non-main thread then it will be larger (probably not needed currently).