Skip to content

Commit

Permalink
Improve latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatWolf committed Oct 6, 2017
1 parent 1623731 commit 0a4f9c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions workspace/popjava/src/popjava/broker/Broker.java
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,10 @@ public POPAccessPoint getAccessPoint() {
public void treatRequests() throws InterruptedException {
setState(State.Running);
while (getState() == State.Running) {
for (ComboxServer comboxServer : comboxServers) {
Request request = comboxServer.getRequestQueue().peek(REQUEST_QUEUE_TIMEOUT_MS,
TimeUnit.MILLISECONDS);

if (request != null) {
serveRequest(request);
}
Request request = requestQueue.peek(REQUEST_QUEUE_TIMEOUT_MS, TimeUnit.MILLISECONDS);

if (request != null) {
serveRequest(request);
}
}
LogWriter.writeDebugInfo("[Broker] Close broker "+popInfo.getClassName());
Expand Down

0 comments on commit 0a4f9c8

Please sign in to comment.