1 | static void autoRestartModule(fS moduleVar, fS programID, final bool callMain) {
|
2 | doLater_daemon(5000, new Runnable {
|
3 | S localMD5; |
4 | |
5 | public void run() {
|
6 | S newMD5 = loadPageSilently("http://botcompany.de/1010693/raw?id=" + psI(programID));
|
7 | if (!isMD5(newMD5)) ret; |
8 | if (localMD5 == null) |
9 | localMD5 = md5(loadCachedTranspilation(programID)); |
10 | |
11 | S localMD5 = autoRestart_localMD5(); |
12 | if (neq(localMD5, newMD5)) {
|
13 | S name = snippetWithTitle(programID); |
14 | upgradeModuleVar(moduleVar, programID, callMain); |
15 | } |
16 | } |
17 | }); |
18 | } |
Began life as a copy of #1013937
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: | #1013957 |
| Snippet name: | autoRestartModule - auto-restart hotwired module on server change (v1, broken) |
| Eternal ID of this version: | #1013957/1 |
| Text MD5: | e49f907962e5a6841c0d26a86bd0ced0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-03-18 16:56:34 |
| Source code size: | 596 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 752 / 805 |
| Referenced in: | [show references] |