fix: correct Telegram allowlist configuration key (#31)

This commit is contained in:
paisley
2026-02-10 16:18:34 +08:00
committed by GitHub
Unverified
parent f0c1931018
commit 518b5f6323
3 changed files with 41 additions and 0 deletions

View File

@@ -309,6 +309,10 @@ export class WhatsAppLoginManager extends EventEmitter {
// Close socket gracefully to avoid conflict with Gateway
await this.stop();
// Add a small delay to ensure socket is fully closed and released
// This prevents "401 Conflict" when Gateway tries to connect immediately
await new Promise(resolve => setTimeout(resolve, 2000));
this.emit('success', { accountId });
}
} catch (innerErr) {