mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Restart catpure on consecutive start requests
This prevents crashes
This commit is contained in:
parent
4912491672
commit
2c86fc312d
@ -61,6 +61,9 @@ public class CaptureHelper {
|
||||
}
|
||||
|
||||
public void startCapture(CaptureSettings settings) {
|
||||
if(CaptureService.isServiceActive())
|
||||
CaptureService.stopService();
|
||||
|
||||
mSettings = settings;
|
||||
|
||||
if(settings.root_capture) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user