Commit d818f438 authored by Karsten Loesing's avatar Karsten Loesing Committed by Sebastian Hahn
Browse files

Fix bug in parsing CIRC events.

Asynchronous CIRC events don't contain a path when circuits have only been
launched. Don't try to parse the path for these events. Instead, pass an
empty string.
parent 40ca5345
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -209,7 +209,9 @@ public class TorControlConnection implements TorControlCommands
                List<String> lst = Bytes.splitStr(null, rest);
                handler.circuitStatus(lst.get(1),
                                      lst.get(0),
                                      lst.get(2));
                                      lst.get(1).equals("LAUNCHED")
                                          || lst.size() < 2 ? ""
                                          : lst.get(2));
            } else if (tp.equals("STREAM")) {
                List<String> lst = Bytes.splitStr(null, rest);
                handler.streamStatus(lst.get(1),