Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
fix empty element bug
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jan 10, 2014
1 parent d818f43 commit 3539cbd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions net/freehaven/tor/control/TorControlConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,15 @@ protected void react() throws IOException {
if ((lst.get(0)).status.startsWith("6"))
handleEvent(lst);
else {
Waiter w;
synchronized (waiters) {
if (!waiters.isEmpty())
{
Waiter w;
w = waiters.removeFirst();
}
w.setResponse(lst);
w.setResponse(lst);
}
}

}
}
}
Expand Down

0 comments on commit 3539cbd

Please sign in to comment.