Fixed disque typo timeout handling
This commit is contained in:
parent
b55721a6c0
commit
872f4c95b2
@ -35,7 +35,7 @@ func (conn *DisqueEndpointConn) Expired() bool {
|
|||||||
conn.mu.Lock()
|
conn.mu.Lock()
|
||||||
defer conn.mu.Unlock()
|
defer conn.mu.Unlock()
|
||||||
if !conn.ex {
|
if !conn.ex {
|
||||||
if time.Now().Sub(conn.t) > httpExpiresAfter {
|
if time.Now().Sub(conn.t) > disqueExpiresAfter {
|
||||||
if conn.conn != nil {
|
if conn.conn != nil {
|
||||||
conn.close()
|
conn.close()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user