please include function conceptsAndBot.
static bool dbOpt_noSave;
static bool dbOpt() {
ret dbOpt(null);
}
static bool dbOpt(Int autoSaveInterval) {
if (conceptsAndBot_running) ret !dbOpt_noSave;
conceptsAndBot_running = true;
if (hasBot(dbBotStandardName())) {
mainConcepts.dontSave = true; // SAFETY
dbOpt_noSave = true;
mainConcepts.load();
false;
} else {
dbOpt_noSave = false;
if (autoSaveInterval != null)
loadAndAutoSaveConcepts(autoSaveInterval);
else
loadAndAutoSaveConcepts();
dbBot();
true;
}
}Began life as a copy of #1005952
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010356 |
| Snippet name: | dbOpt - start persistence only if we're the first one; otherwise load only |
| Eternal ID of this version: | #1010356/4 |
| Text MD5: | 39d651f2cd999ef28f94488164c99be3 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-12 16:04:07 |
| Source code size: | 597 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 844 / 884 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |