Skip to content

Commit

Permalink
Stopping the game if the LN channel couldn't establish
Browse files Browse the repository at this point in the history
  • Loading branch information
sg777 committed Oct 14, 2021
1 parent cf39274 commit 72f0d0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions privatebet/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,12 @@ int32_t bet_client_join_res(cJSON *argjson, struct privatebet_info *bet, struct
if ((channel_state != CHANNELD_AWAITING_LOCKIN) && (channel_state != CHANNELD_NORMAL)) {
retval = ln_establish_channel(uri);
if (retval == 1) {
dlg_info("Channel Established");
dlg_info("LN Channel Established");
} else {
dlg_info("Channel Didn't Established");
dlg_warn("LN Channel Didn't Established, Game stopping...");
return retval;
}
} else {
if (0 == channel_state)
} else if (0 == channel_state) {
dlg_info(
"There isn't any pre-established channel with the dealer, so creating one now");
strcpy(uri, jstr(argjson, "uri"));
Expand Down

0 comments on commit 72f0d0b

Please sign in to comment.