fire onDone event when no payloads

This commit is contained in:
Crawlerop 2020-10-26 19:24:05 +07:00
parent a736c3735d
commit c8d8fe1c33

View file

@ -277,10 +277,14 @@
onGeocode = false
function doAsync(reqid=0, onDone, preCon, t=0) {
if (asyncPayload.length < 1) {
if (preCon != null && preCon() == false) {
return
}
if (preCon != null && preCon() == false) {
if (asyncPayload.length < 1) {
if (onDone != null) {
onDone()
}
return
}