mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-18 13:37:20 +00:00
don't try to stop consuming amqp when crawl is shutting down, can end up reopening the connection after it's been closed
This commit is contained in:
@@ -272,7 +272,7 @@ public class AMQPUrlReceiver implements Lifecycle, ApplicationListener<CrawlStat
|
||||
@Override
|
||||
public void onApplicationEvent(CrawlStateEvent event) {
|
||||
switch(event.getState()) {
|
||||
case PAUSING: case PAUSED: case STOPPING: case FINISHED:
|
||||
case PAUSING: case PAUSED:
|
||||
try {
|
||||
channel().flow(false);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user