Skip to content

Commit

Permalink
Log thread start/stop
Browse files Browse the repository at this point in the history
Signed-off-by: Syrone Wong <[email protected]>
  • Loading branch information
wongsyrone authored and oasiscifr committed Oct 13, 2019
1 parent d72b7c5 commit f01e829
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public static TrojanService getInstance() {
}

class PacketThread extends Thread {
private static final String TAG = "TrojanPacketThread";
public void run()
{
System.out.println("Current thread name: "
+ Thread.currentThread().getName());
Log.i(TAG, Thread.currentThread().getName() + " thread start");
while (running) {
try {
int n = inputStream.read(buffer.array());
Expand All @@ -85,8 +85,7 @@ public void run()
break;
}
}
System.out.println("thread quit");
return;
Log.i(TAG, Thread.currentThread().getName() + " thread exit");
}
}

Expand Down

0 comments on commit f01e829

Please sign in to comment.