mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: avoid unhandled promise timeout errors
This commit is contained in:
@@ -218,7 +218,7 @@ export const makeSocket = (config: SocketConfig) => {
|
|||||||
|
|
||||||
const [result] = await Promise.all([
|
const [result] = await Promise.all([
|
||||||
waitForMessage(msgId, timeoutMs),
|
waitForMessage(msgId, timeoutMs),
|
||||||
await sendNode(node)
|
sendNode(node)
|
||||||
])
|
])
|
||||||
|
|
||||||
if('tag' in result) {
|
if('tag' in result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user