openstf/adbkit-monkey

disconnected second command

nakidong opened this issue · 1 comments

thank you for your nice work.

this is a question.

I try your code with my phone. this is nice work!
but i try second command(execute again same code). it will be disconnected adb.

first cmd window
adb forward tcp:1080 tcp:1080 && adb shell monkey --port 1080

another cmd window
node app.js // working!
node app.js // disconnect adb!

how can i fix this?

i'm sorry.
client.end(); will close terminal.