Skip to content

Commit

Permalink
client.Connect should not block
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Jan 21, 2025
1 parent 98b720e commit 1de847d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gchatmeow/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func (c *Client) Connect(ctx context.Context, maxAge time.Duration) error {
})
c.channel.OnReceiveArray.AddObserver(c.onReceiveArray)

return c.channel.Listen(ctx, maxAge)
go c.channel.Listen(ctx, maxAge)
return nil
}

func (c *Client) RefreshTokens(ctx context.Context) error {
Expand Down

0 comments on commit 1de847d

Please sign in to comment.