Commit 198cfe64 authored by yanzg's avatar yanzg

消除成功接收处理

parent d1559846
...@@ -18,6 +18,7 @@ public class ThreadHelper { ...@@ -18,6 +18,7 @@ public class ThreadHelper {
private static RunPlan timeout; private static RunPlan timeout;
private static RunPlan interval; private static RunPlan interval;
private static final long SECOND_UNIT = 1000; private static final long SECOND_UNIT = 1000;
private static final long NEXT_SECOND = 5;
/** /**
* 线程对象 * 线程对象
*/ */
...@@ -100,7 +101,7 @@ public class ThreadHelper { ...@@ -100,7 +101,7 @@ public class ThreadHelper {
@Override @Override
public void run() { public void run() {
do { do {
if (threadIsRun && ((System.currentTimeMillis() - threadDate.getTime()) / SECOND_UNIT) > 5) { if (threadIsRun && ((System.currentTimeMillis() - threadDate.getTime()) / SECOND_UNIT) > NEXT_SECOND) {
try { try {
if (threadIsRun) { if (threadIsRun) {
threadIsRun = false; threadIsRun = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment