File tree Expand file tree Collapse file tree 2 files changed +30
-3
lines changed
src/main/java/ch/qos/logback/amqp Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 28
28
<version >2.2.0</version >
29
29
</dependency >
30
30
</dependencies >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >org.apache.maven.plugins</groupId >
35
+ <artifactId >maven-assembly-plugin</artifactId >
36
+ <version >2.2</version >
37
+ <configuration >
38
+ <descriptorRefs >
39
+ <descriptorRef >jar-with-dependencies</descriptorRef >
40
+ </descriptorRefs >
41
+ <archive >
42
+ <manifest >
43
+ <mainClass >ch.qos.logback.amqp.AmqpConsumerAgentMain</mainClass >
44
+ </manifest >
45
+ </archive >
46
+ </configuration >
47
+ <executions >
48
+ <execution >
49
+ <phase >package</phase >
50
+ <goals >
51
+ <goal >single</goal >
52
+ </goals >
53
+ </execution >
54
+ </executions >
55
+ </plugin >
56
+ </plugins >
57
+ </build >
31
58
</project >
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ public static final void main (final String[] arguments)
54
54
agent .start ();
55
55
56
56
while (true ) {
57
+ boolean stillRunning = false ;
57
58
for (final AmqpConsumerAgent agent : agents )
58
- if (!agent .isRunning ())
59
- agents .remove (agent );
60
- if (agents .isEmpty ())
59
+ stillRunning |= agent .isRunning ();
60
+ if (!stillRunning )
61
61
break ;
62
62
try {
63
63
Thread .sleep (AmqpConsumerAgent .waitTimeout );
You can’t perform that action at this time.
0 commit comments