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()
|
||||
cb(err, dataSet)
|
||||
} else if !noMainThread {
|
||||
} else {
|
||||
_app.RegisterMainThreadCb(
|
||||
func() {
|
||||
defer freeFunc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user