mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 22:55:45 +00:00
syncronize start() and stop()
This commit is contained in:
@@ -92,7 +92,7 @@ public class AMQPUrlReceiver implements Lifecycle {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
synchronized public void start() {
|
||||
while (!isRunning) {
|
||||
try {
|
||||
Consumer consumer = new UrlConsumer(channel());
|
||||
@@ -110,7 +110,7 @@ public class AMQPUrlReceiver implements Lifecycle {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
synchronized public void stop() {
|
||||
logger.info("shutting down");
|
||||
if (connection != null && connection.isOpen()) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user