mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
commit
49ba162c76
@ -1097,7 +1097,7 @@ func (client *Client) destroy(session *Session) {
|
|||||||
|
|
||||||
// this happens under failure to return from BRB
|
// this happens under failure to return from BRB
|
||||||
if quitMessage == "" {
|
if quitMessage == "" {
|
||||||
if !brbAt.IsZero() {
|
if brbState == BrbDead && !brbAt.IsZero() {
|
||||||
awayMessage := client.AwayMessage()
|
awayMessage := client.AwayMessage()
|
||||||
if awayMessage == "" {
|
if awayMessage == "" {
|
||||||
awayMessage = "Disconnected" // auto-BRB
|
awayMessage = "Disconnected" // auto-BRB
|
||||||
|
@ -425,6 +425,7 @@ func (bt *BrbTimer) processTimeout() {
|
|||||||
} else {
|
} else {
|
||||||
// client resumed, reattached, or has another active session
|
// client resumed, reattached, or has another active session
|
||||||
bt.state = BrbDisabled
|
bt.state = BrbDisabled
|
||||||
|
bt.brbAt = time.Time{}
|
||||||
}
|
}
|
||||||
case BrbDead:
|
case BrbDead:
|
||||||
dead = true // shouldn't be possible but whatever
|
dead = true // shouldn't be possible but whatever
|
||||||
|
Loading…
Reference in New Issue
Block a user