Skip to content

Commit

Permalink
main: ps_connectChannel returns PS_STATUS, not bool
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed May 22, 2022
1 parent 7021559 commit 44aafd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/channel_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,12 @@ static PS_STATUS onMessage_mainChannelsList(struct PSChannel * channel)
return PS_STATUS_ERROR;
}

if (!ps_connectChannel(ch))
PS_STATUS status = ps_connectChannel(ch);
if (status != PS_STATUS_OK)
{
purespice_disconnect();
PS_LOG_ERROR("Failed to connect to the %s channel", ch->name);
return PS_STATUS_ERROR;
return status;
}

break;
Expand Down

0 comments on commit 44aafd2

Please sign in to comment.