优化代码

This commit is contained in:
GoEdgeLab
2022-09-07 14:54:36 +08:00
parent 4074648bf1
commit c3bbcc15e7
2 changed files with 9 additions and 4 deletions

View File

@@ -64,6 +64,11 @@ For:
for {
// closed
if this.isClosed {
if lastTx != nil {
_ = lastTx.Commit()
lastTx = nil
}
return
}