SD-211 - show all recordings and play them
This commit is contained in:
@ -293,7 +293,7 @@ public class TCPhandler implements Runnable {
|
||||
/**
|
||||
* Send a message through the TCP Socket
|
||||
*
|
||||
* @param seqID The messages's sequence ID (a number of order)
|
||||
* @param seqID The messages's sequence id (a number of order)
|
||||
* @param msg The messages which will be sent
|
||||
* @return True if the message was sent
|
||||
*/
|
||||
@ -310,7 +310,7 @@ public class TCPhandler implements Runnable {
|
||||
cmdok = "#" + Integer.toString(tmp) + cmdok;
|
||||
|
||||
byte[] mess = encryptTEA(cmdok);
|
||||
Thread gfgThread = new Thread(() -> {
|
||||
Thread tcpThread = new Thread(() -> {
|
||||
try {
|
||||
output.write(mess);
|
||||
output.flush();
|
||||
@ -319,15 +319,14 @@ public class TCPhandler implements Runnable {
|
||||
}
|
||||
});
|
||||
|
||||
gfgThread.start();
|
||||
tcpThread.start();
|
||||
|
||||
|
||||
SM.Debug(" ", new String(mess));
|
||||
return true;
|
||||
//} catch (IOException e) {
|
||||
// SM.Exception("TCPClient[Send]", e.toString());
|
||||
} catch (InterruptedException e) {
|
||||
SM.Exception("TCPClient[Send]", e.toString());
|
||||
Thread.currentThread().interrupt();
|
||||
} catch (NoSuchElementException e) {
|
||||
SM.Exception("TCPClient[Send]", e.toString());
|
||||
}
|
||||
@ -335,7 +334,7 @@ public class TCPhandler implements Runnable {
|
||||
return false;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
SM.Debug("TCPhandler Write Procedure:" + e.toString());
|
||||
SM.Debug("TCPhandler Write Procedure:" + e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user