Another timeout improvement

Occurs when the application gains focus (after it had lost it).