mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-10-30 10:35:08 +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:
1 parent
72b2d58034
commit
e389499aa7
1 file changed
+1
-1
@@ -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