Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1009420 // dbOff - switch database off again

JavaX fragment (include)

1  
please include function conceptsAndBot.
2  
please include function dbBot.
3  
4  
static void dbOff() {
5  
  lock dbLock();
6  
  if (!conceptsAndBot_running) ret;
7  
  conceptsAndBot_running = false;
8  
  if (dbBot_instance != null) {
9  
    dbBot_instance.dispose();
10  
    dbBot_instance = null;
11  
  }
12  
  print("Main concepts dirty? " + (mainConcepts.changes != mainConcepts.changesWritten) + " Main concepts autosaver? " + (mainConcepts.autoSaver != null));
13  
  cleanMeUp_concepts();
14  
  mainConcepts.clearConcepts();
15  
}

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: #1009420
Snippet name: dbOff - switch database off again
Eternal ID of this version: #1009420/5
Text MD5: 34bc7dcd22e1dd413a9cd4f27a4a237f
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-01 18:31:51
Source code size: 501 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 544
Version history: 4 change(s)
Referenced in: [show references]