This commit is contained in:
aozhiwei 2024-05-10 11:57:42 +08:00
parent 301510cf4f
commit 03df640b48

View File

@ -424,10 +424,10 @@ func (this *dbPool) internalQueryEx(dataSource string, sql string, params []stri
}
}
if this.style == GO_STYLE_DB {
if this.style == GO_STYLE_DB || noMainThread {
defer freeFunc()
cb(err, dataSet)
} else if !noMainThread {
} else {
_app.RegisterMainThreadCb(
func() {
defer freeFunc()