Clear state flags when disconnecting
This commit is contained in:
parent
9b498149be
commit
9c6ef9b665
1 changed files with 4 additions and 0 deletions
4
user.go
4
user.go
|
@ -510,6 +510,10 @@ func (user *User) DeleteConnection() {
|
||||||
user.unlockedDeleteConnection()
|
user.unlockedDeleteConnection()
|
||||||
user.longPollingError = errors.New("not connected")
|
user.longPollingError = errors.New("not connected")
|
||||||
user.phoneResponding = true
|
user.phoneResponding = true
|
||||||
|
user.batteryLow = false
|
||||||
|
user.switchedToGoogleLogin = false
|
||||||
|
user.ready = false
|
||||||
|
user.browserInactiveType = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) HasSession() bool {
|
func (user *User) HasSession() bool {
|
||||||
|
|
Loading…
Reference in a new issue