Skip to content

Commit 1d7fe50

Browse files
committed
Remove unnecessary try/finally from earlyExit to match main path.
1 parent 7056fc1 commit 1d7fe50

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/main/java/com/lmax/disruptor/BatchEventProcessor.java

+3-8
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public void run()
120120
notifyStart();
121121
try
122122
{
123+
123124
if (running.get() == RUNNING)
124125
{
125126
processEvents();
@@ -193,14 +194,8 @@ private void processEvents()
193194

194195
private void earlyExit()
195196
{
196-
try
197-
{
198-
notifyStart();
199-
}
200-
finally
201-
{
202-
notifyShutdown();
203-
}
197+
notifyStart();
198+
notifyShutdown();
204199
}
205200

206201
private void notifyTimeout(final long availableSequence)

0 commit comments

Comments
 (0)