1 | static void tryToAcquirePort5000() { |
2 | thread "Move to port 5000" { |
3 | repeat with sleep 10 { |
4 | if (vmPort() == 5000) ret; |
5 | if (portIsFree(5000)) { |
6 | print("Trying to move to port 5000..."); |
7 | restartVMAndroid(); |
8 | print("...went to port: " + vmPort() + "."); |
9 | } |
10 | } |
11 | } |
12 | } |
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: | #1011265 |
Snippet name: | tryToAcquirePort5000 - keep trying to move this VM to port 5000 until it is done |
Eternal ID of this version: | #1011265/2 |
Text MD5: | 08ecb9fdecbd5a235a71c97ff6bb25c0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-21 21:52:10 |
Source code size: | 318 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 508 / 536 |
Version history: | 1 change(s) |
Referenced in: | [show references] |