don't try to load the module if it is already loaded
authorMichael Gernoth <michael@gernoth.net>
Tue, 30 Oct 2012 20:03:35 +0000 (21:03 +0100)
committerMichael Gernoth <michael@gernoth.net>
Tue, 30 Oct 2012 20:03:35 +0000 (21:03 +0100)
MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java

index 2b088d7..1a424f8 100644 (file)
@@ -82,6 +82,10 @@ public class DebounceModuleHelper
        }
 
        public synchronized boolean _loadModule() throws NotRootedException,ShellException {
+               if (isLoaded()) {
+                       return true;
+               }
+
                File insmod = new File("/system/bin/insmod");
                if (!insmod.exists()) {
                        insmod = new File("/system/xbin/insmod");
Impressum, Datenschutz