public void run() {
while (ts3.getSocket() != null && ts3.getSocket().isConnected() && ts3.getIn() != null && !stop) {
long idleTime = writer.getIdleTime();
if (idleTime >= SLEEP) {
ts3.doCommand(new CWhoAmI());
}
try {
Thread.sleep(50);
} catch (InterruptedException e) {
e.printStackTrace();