Skip to content

Commit

Permalink
[Issue #337] Fix Http Test Subscriber startup issue by moving the Thr…
Browse files Browse the repository at this point in the history
…ead.sleep into the child thread (#338)

* [Issue #337] Fix HttpSubscriber startup issue

* [Issue #337] test commit

* [Issue #337] revert test commit

Co-authored-by: j00441484 <[email protected]>
  • Loading branch information
jinrongluo and j00441484 authored May 11, 2021
1 parent aea620b commit 289e948
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ public void afterPropertiesSet() throws Exception {
}));

Thread stopThread = new Thread(() -> {
try {
Thread.sleep(5 * 60 * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
logger.info("stopThread start....");
System.exit(0);
});

Thread.sleep(5 * 60 * 1000);

// stopThread.start();
stopThread.start();
}
}

0 comments on commit 289e948

Please sign in to comment.