forked from External/ergo
fix #642
This commit is contained in:
parent
575fcd4aeb
commit
24c103da5a
2 changed files with 2 additions and 1 deletions
|
|
@ -1097,7 +1097,7 @@ func (client *Client) destroy(session *Session) {
|
|||
|
||||
// this happens under failure to return from BRB
|
||||
if quitMessage == "" {
|
||||
if !brbAt.IsZero() {
|
||||
if brbState == BrbDead && !brbAt.IsZero() {
|
||||
awayMessage := client.AwayMessage()
|
||||
if awayMessage == "" {
|
||||
awayMessage = "Disconnected" // auto-BRB
|
||||
|
|
|
|||
|
|
@ -425,6 +425,7 @@ func (bt *BrbTimer) processTimeout() {
|
|||
} else {
|
||||
// client resumed, reattached, or has another active session
|
||||
bt.state = BrbDisabled
|
||||
bt.brbAt = time.Time{}
|
||||
}
|
||||
case BrbDead:
|
||||
dead = true // shouldn't be possible but whatever
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue