File tree Expand file tree Collapse file tree
cSploit/src/org/csploit/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747import org .csploit .android .net .Endpoint ;
4848import org .csploit .android .net .GitHubParser ;
4949import org .csploit .android .net .Network ;
50+ import org .csploit .android .net .RemoteReader ;
5051import org .csploit .android .net .Target ;
5152import org .csploit .android .net .Target .Exploit ;
5253import org .csploit .android .net .Target .Type ;
@@ -1199,6 +1200,8 @@ public static void clean(boolean releaseLocks){
11991200 mWakeLock .release ();
12001201 }
12011202
1203+ RemoteReader .terminateAll ();
1204+
12021205 GitHubParser .resetAll ();
12031206
12041207 synchronized (mTargets ) {
Original file line number Diff line number Diff line change @@ -323,6 +323,14 @@ public String getErrorMessage() {
323323 return res ;
324324 }
325325
326+ public static void terminateAll () {
327+ synchronized (readers ) {
328+ for (RemoteReader r : readers ) {
329+ r .terminate ();
330+ }
331+ }
332+ }
333+
326334 private void addFirst (Task task ) {
327335 synchronized (tasks ) {
328336 ((Deque <Task >) tasks ).addFirst (task );
You can’t perform that action at this time.
0 commit comments