Marcus Castro
dd2083c7ec
fix(whastapp): bound connection startup waits ( #90486 )
...
* fix: add timeout to waitForWaConnection to prevent indefinite hangs
If Baileys fails to emit a 'connection.update' event with either 'open'
or 'close' status (e.g. due to network issues or internal errors), the
waitForWaConnection promise hangs forever, blocking the entire monitor
loop.
Add a configurable timeout (default 60s) that rejects the promise and
cleans up the event listener if no connection state is received in time.
The timeout is backward-compatible as an optional parameter with a
sensible default.
* test: add coverage for waitForWaConnection timeout path
- Test that promise rejects with descriptive error after timeout
- Test that event listener is cleaned up after timeout
- Test that timer is cleared when connection opens before timeout
* fix: default timeoutMs to 0 to preserve QR login behavior
The 60s default broke the QR login flow in login-qr.ts, which calls
waitForWaConnection without a timeout and expects to wait up to 3 minutes
while the user scans. Change the default to 0 (wait forever, matching
original behavior) and pass the 60s timeout explicitly at the monitor
callsite where it's actually needed.
* fix: bound whatsapp connection startup waits
* fix: align web channel wait contract
* fix: retry whatsapp setup timeouts
* fix: satisfy whatsapp status lint
* fix: preserve whatsapp wait compatibility
---------
Co-authored-by: MMMMSSSS8899 <praelovk@gmail.com >
2026-06-04 21:45:43 -03:00
..
2026-06-04 19:48:26 -04:00
2026-06-04 19:48:26 -04:00
2026-06-04 19:52:26 -04:00
2026-06-04 21:45:43 -03:00
2026-06-04 19:54:07 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:19:03 -04:00
2026-05-24 00:31:01 +01:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:57:48 -04:00
2026-06-03 20:30:38 -04:00
2026-06-04 04:15:33 -04:00
2026-06-03 20:30:38 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:15:33 -04:00
2026-06-03 21:03:43 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:22:45 -04:00
2026-05-31 01:33:00 +01:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:21:07 -04:00
2026-06-03 20:19:17 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:38:31 -04:00
2026-06-03 21:03:43 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:48:42 -04:00
2026-06-03 14:17:29 -07:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:29:53 -04:00
2026-05-31 18:59:02 +01:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:41:47 -04:00
2026-05-19 15:14:15 -07:00
2026-06-04 04:38:31 -04:00
2026-05-31 23:06:13 +01:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:21:07 -04:00
2026-06-02 08:00:42 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:46:27 -04:00
2026-06-03 21:03:43 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:54:37 -04:00
2026-06-03 20:01:47 -04:00
2026-06-04 17:24:03 +00:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:14:06 -04:00
2026-06-03 21:03:43 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:25:18 -04:00
2026-06-03 20:54:08 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:27:23 -04:00
2026-06-03 20:13:51 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 23:06:33 +01:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:21:07 -04:00
2026-06-03 21:01:33 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:22:45 -04:00
2026-06-03 20:30:38 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:17:40 -04:00
2026-05-28 20:08:42 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:57:48 -04:00
2026-06-03 20:28:45 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:31:52 -04:00
2026-06-03 20:15:37 -04:00
2026-06-04 04:15:33 -04:00
2026-06-03 21:03:43 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:25:18 -04:00
2026-06-03 21:01:33 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 05:00:21 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:19:03 -04:00
2026-05-27 13:32:18 +01:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:12:38 -04:00
2026-06-03 20:19:17 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:48:42 -04:00
2026-06-03 21:03:43 -04:00
2026-06-03 20:28:45 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:12:38 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:17:40 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:38:31 -04:00
2026-06-03 20:19:17 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:46:27 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:48:42 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:41:47 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:36:44 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:57:48 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:21:07 -04:00
2026-06-03 20:34:17 -04:00
2026-06-04 05:00:21 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:22:45 -04:00
2026-06-04 04:44:12 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:15:33 -04:00
2026-06-04 04:51:24 -04:00
2026-06-04 04:27:23 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:14:06 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:29:53 -04:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:21:07 -04:00
2026-06-04 04:34:19 -04:00
2026-06-04 04:54:37 -04:00
2026-06-04 04:25:18 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:27:23 -04:00
2026-05-27 19:24:04 +01:00
2026-05-13 05:26:13 +01:00
2026-06-04 04:19:03 -04:00
2026-06-04 04:38:31 -04:00
2026-06-04 04:31:52 -04:00
2026-06-04 04:57:48 -04:00
2026-05-13 13:33:38 +01:00