|
@@ -1624,6 +1624,7 @@ func (client *Client) performWrite() {
|
1624
|
1624
|
dirtyBits := client.dirtyBits
|
1625
|
1625
|
client.dirtyBits = 0
|
1626
|
1626
|
account := client.account
|
|
1627
|
+ lastSeen := client.lastSeen
|
1627
|
1628
|
client.stateMutex.Unlock()
|
1628
|
1629
|
|
1629
|
1630
|
if account == "" {
|
|
@@ -1640,9 +1641,6 @@ func (client *Client) performWrite() {
|
1640
|
1641
|
client.server.accounts.saveChannels(account, channelNames)
|
1641
|
1642
|
}
|
1642
|
1643
|
if (dirtyBits & IncludeLastSeen) != 0 {
|
1643
|
|
- client.stateMutex.RLock()
|
1644
|
|
- lastSeen := client.lastSeen
|
1645
|
|
- client.stateMutex.RUnlock()
|
1646
|
1644
|
client.server.accounts.saveLastSeen(account, lastSeen)
|
1647
|
1645
|
}
|
1648
|
1646
|
}
|