mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
touch should respect destroyed
This commit is contained in:
parent
e0e61907ce
commit
541a40b056
2 changed files with 5 additions and 1 deletions
|
|
@ -50,6 +50,10 @@ func NewClient(server *Server, conn net.Conn) *Client {
|
|||
}
|
||||
|
||||
func (client *Client) Touch() {
|
||||
if client.destroyed {
|
||||
return
|
||||
}
|
||||
|
||||
client.atime = time.Now()
|
||||
|
||||
if client.quitTimer != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue