Рефакторинг

This commit is contained in:
serega6531
2020-04-14 22:35:33 +03:00
parent 01a3c0e512
commit d975f425f8
13 changed files with 29 additions and 33 deletions

View File

@@ -58,7 +58,8 @@ public class FilePcapWorker extends AbstractPcapWorker {
gotPacket(packet);
} catch (PcapNativeException e) {
log.error("Pcap read error: {}", e.getMessage());
Thread.sleep(100);
//noinspection BusyWait
Thread.sleep(100); // чтобы ошибки не летели слишком быстро
} catch (EOFException e) {
stop();