Merge branch 'feature/mobile_with_close_pages' of bitbucket.org:panleicim/puppeteerjs into feature/mobile_with_close_pages
This commit is contained in:
@@ -715,11 +715,13 @@ class CommandorPage {
|
|||||||
let reserve = ReserveResultPojo.create_from_contact(this.contact, id, url, this.choosedStore, publishType);
|
let reserve = ReserveResultPojo.create_from_contact(this.contact, id, url, this.choosedStore, publishType);
|
||||||
reserve.source_from = this.device.model();
|
reserve.source_from = this.device.model();
|
||||||
await this.mongoManager.saveReserveToDb(reserve.to_mongo_dict())
|
await this.mongoManager.saveReserveToDb(reserve.to_mongo_dict())
|
||||||
|
if (!this.page.isClosed()) {
|
||||||
try {
|
try {
|
||||||
await this.page.close();
|
await this.page.close();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// await this.deleteFromBlackList()
|
// await this.deleteFromBlackList()
|
||||||
this.isTerminated = true
|
this.isTerminated = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user