git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2559
91ce42f0-d328-0410-95d8-
f526ca767f89
SetStatusText(_("Connected to the director."));
typeCtrl->ClearCommandList();
bool parsed = false;
- while (!parsed) {
- wxbDataTokenizer* dt = wxbUtils::WaitForEnd(wxT(".help"), true);
+ int retries = 3;
+ wxbDataTokenizer* dt = wxbUtils::WaitForEnd(wxT(".help"), true);
+ while (true) {
int i, j;
wxString str;
for (i = 0; i < (int)dt->GetCount(); i++) {
parsed = true;
}
}
+ retries--;
+ if ((parsed) || (!retries))
+ break;
+ dt = wxbUtils::WaitForEnd(wxT(""), true);
}
EnablePanels();
menuFile->Enable(MenuConnect, true);