Skip to content

Commit

Permalink
tns debug start now creates or gets availiable port
Browse files Browse the repository at this point in the history
  • Loading branch information
Plamen5kov committed Sep 7, 2015
1 parent 2e099e4 commit 8b6e879
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/src/com/tns/JsDebugger.java
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ public void onReceive(Context context, Intent intent)
int port = bundle.getInt("debuggerPort", INVALID_PORT);
if (port == INVALID_PORT)
{
if(currentPort == INVALID_PORT) {
currentPort = getAvailablePort();
}
port = currentPort;
}
String packageName = bundle.getString("packageName", context.getPackageName());
Expand Down

0 comments on commit 8b6e879

Please sign in to comment.