feat: check if a param is a promise with instanceof

This commit is contained in:
CosminPerRam 2024-02-24 17:44:18 +02:00
parent 0ec26540aa
commit 93245ace70
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export default class Core extends EventEmitter {
const start = Date.now()
try {
if (param.then) {
if (param instanceof Promise) {
await param
await this.registerRtt(Date.now() - start)
} else {