1 | static void ensureDBNotRunning(S name) {
|
2 | if (hasBot(name)) {
|
3 | pcall {
|
4 | S framesBot = dropSuffix(".", name) + " Frames";
|
5 | print("Trying to activate frames of running DB: " + framesBot);
|
6 | if (isOK(sendOpt(framesBot, "activate frames")) && isMainProgram()) |
7 | cleanKill(); |
8 | } |
9 | fail("Already running: " + name);
|
10 | } |
11 | } |
12 | |
13 | static void ensureDBNotRunning() {
|
14 | ensureDBNotRunning(dbBotStandardName()); |
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: | #1010426 |
| Snippet name: | ensureDBNotRunning - tries to activate its frames if possible |
| Eternal ID of this version: | #1010426/4 |
| Text MD5: | 8eea580157fffced8f9c3d7f971a60cd |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-21 08:59:03 |
| Source code size: | 439 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 697 / 740 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |