You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -121,20 +153,18 @@ public void traceRoute(final OnTraceListener onTraceListener) {
121
153
}
122
154
traceObj.hop = hops++;
123
155
156
+
addTraceObj(traceObj);
157
+
124
158
if (shouldStopTrace) {
125
159
// Stop before possibly doing activity_ping.
126
-
onTraceListener.onTrace(traceObj);
127
160
shouldStopTrace = false;
128
161
return;
129
162
}
130
-
131
-
onTraceListener.onTrace(traceObj);
132
163
}
164
+
elseif (!str.contains("100% packet loss")) {
165
+
// Keep going if it's a route, or if we lost all our packets
133
166
134
-
// Keep going if it's a route, or if we lost all our packets
135
-
if (!str.contains("Time to live exceeded") && !str.contains("100% packet loss")) {
136
-
137
-
finalTraceObjtraceObj = newTraceObj();
167
+
TraceObjtraceObj = newTraceObj();
138
168
139
169
traceObj.address = str.substring(str.indexOf("bytes of data.64 bytes from ") + "bytes of data.64 bytes from ".length(), str.indexOf("icmp_seq") - 1).replace(":", "");
140
170
if (traceObj.address.contains(" (")) {
@@ -148,7 +178,8 @@ public void traceRoute(final OnTraceListener onTraceListener) {
0 commit comments