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