Skip to content

Commit

Permalink
allow ela_get_groups() to be called in the whole lifecycle of carrier…
Browse files Browse the repository at this point in the history
… due to introduction of persistent group (#325) (#326)
  • Loading branch information
lifenxiang authored and stiartsly committed Mar 23, 2020
1 parent 3727727 commit 049f462
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/carrier/ela_carrier.c
Original file line number Diff line number Diff line change
Expand Up @@ -3929,11 +3929,6 @@ int ela_get_groups(ElaCarrier *w, ElaIterateGroupCallback *callback,
return -1;
}

if (!w->is_ready) {
ela_set_error(ELA_GENERAL_ERROR(ELAERR_NOT_READY));
return -1;
}

group_count = dht_get_group_count(&w->dht);
if (!group_count) {
callback(NULL, context);
Expand Down

0 comments on commit 049f462

Please sign in to comment.