1
This commit is contained in:
parent
301510cf4f
commit
03df640b48
@ -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()
|
defer freeFunc()
|
||||||
cb(err, dataSet)
|
cb(err, dataSet)
|
||||||
} else if !noMainThread {
|
} else {
|
||||||
_app.RegisterMainThreadCb(
|
_app.RegisterMainThreadCb(
|
||||||
func() {
|
func() {
|
||||||
defer freeFunc()
|
defer freeFunc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user