src/main/java/com/zy/core/thread/BarcodeThread.java
@@ -99,7 +99,7 @@ connect(); while (true) { try { byte[] read = read(14, 5000); byte[] read = read(14, 15000); if (null != read) { String s = new String(read); if (!Cools.isEmpty(s)) { @@ -107,11 +107,11 @@ } } Thread.sleep(50); } catch (SocketTimeoutException ignore) { connCount++; } catch (Exception e) { setBarcode(""); e.printStackTrace(); log.error("run" + e); // e.printStackTrace(); connect(); } } }