]> git.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/src/de/rmdir/ms2debounce/DebounceModuleHelper.java
don't try to load the module if it is already loaded
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceModuleHelper.java
index 2b088d799f1991e1ac66a7ffddf62cc0e8f14f79..1a424f85842a573927d6c93240ac9af757c3ed36 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