Skip to content

Commit

Permalink
fix: add setImmediate to connected event (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: arc-alex <[email protected]>
  • Loading branch information
alex-Arc and alex-Arc authored Aug 23, 2023
1 parent ee76c0c commit 0528e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ export class CompanionSatelliteClient extends EventEmitter<CompanionSatelliteCli
this.disconnect()
return
}

this.emit('connected')
setImmediate(() => {
this.emit('connected')
})
})

if (this._host) {
Expand Down

0 comments on commit 0528e36

Please sign in to comment.