#282 fix disabled state per idle timeout
This commit is contained in:
parent
3067b06bf6
commit
d4dde3fe4f
@ -368,7 +368,7 @@ func (client *Client) Close() error {
|
||||
|
||||
func (client *Client) IsIdle() bool {
|
||||
if command.Opts.ConnectionIdleTimeoutDisabled {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
return time.Since(client.lastQueryTime).Minutes() > command.Opts.ConnectionIdleTimeout
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user