Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 21, 2021
1 parent 0debbba commit e0690e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zkclient/zkclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,9 @@ func (z *ZKC) goOnlineAndPrint() error {
default:
err = z.welcomeUser(welcome)
}
if err != nil {
return err
}

for _, group := range z.settings.OpenGroups {
_, _, err = z.groupConversation(group)
Expand All @@ -1004,7 +1007,7 @@ func (z *ZKC) goOnlineAndPrint() error {

go z.handleRPC()

return err
return nil
}

func (z *ZKC) goOnlineRetry() {
Expand Down

0 comments on commit e0690e5

Please sign in to comment.