static void tryToAcquirePort5000() { thread "Move to port 5000" { repeat with sleep 10 { if (vmPort() == 5000) ret; if (portIsFree(5000)) { print("Trying to move to port 5000..."); restartVMAndroid(); print("...went to port: " + vmPort() + "."); } } } }
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: | 506 / 533 |
Version history: | 1 change(s) |
Referenced in: | [show references] |