Add before this setting line so that there will not be extra emits. In addition, then in web process we do not need to worry about state change (real change or not):
```
if (state == m_offline)
    return;
```