mirror of https://github.com/ledisdb/ledisdb.git
client rollback tx when close
This commit is contained in:
parent
f49a3bbece
commit
7df7af8b54
|
@ -55,6 +55,11 @@ func (c *respClient) run() {
|
||||||
c.conn.Close()
|
c.conn.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.tx != nil {
|
||||||
|
c.tx.Rollback()
|
||||||
|
c.tx = nil
|
||||||
|
}
|
||||||
|
|
||||||
c.app.removeSlave(c.client)
|
c.app.removeSlave(c.client)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue