Re-work waiting for auth

This commit is contained in:
Jon Staab
2024-11-05 14:17:04 -08:00
parent ecb08cace9
commit 0ec2b6ec73
6 changed files with 50 additions and 47 deletions
+1 -3
View File
@@ -300,10 +300,8 @@ const _executeSubscription = (sub: Subscription) => {
if (filters.length > 0) {
Promise.all(
executor.target.connections.map(async (connection: Connection) => {
await connection.open()
if (authTimeout) {
await connection.auth.waitIfPending({timeout: authTimeout})
await connection.auth.attempt(authTimeout)
}
})
).then(() => {