diff options
author | root <root@raspberrypi.(none)> | 2015-04-04 12:23:36 +0200 |
---|---|---|
committer | root <root@raspberrypi.(none)> | 2015-04-04 12:23:36 +0200 |
commit | 748239279e1478f7135d113172d5701e787bdb84 (patch) | |
tree | 73fad15d13ffa713c4eb6d029f4796ecbd79bd66 /pyload/network | |
parent | add lib (diff) | |
download | pyload-748239279e1478f7135d113172d5701e787bdb84.tar.xz |
fix endless recursion
Diffstat (limited to 'pyload/network')
-rw-r--r-- | pyload/network/JsEngine.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/JsEngine.py b/pyload/network/JsEngine.py index 2e98fa37d..481a99a18 100644 --- a/pyload/network/JsEngine.py +++ b/pyload/network/JsEngine.py @@ -110,9 +110,9 @@ class AbstractEngine(object): __name = "" - def __init__(self): + def __init__(self, force=False): self.setup() - self.available = self.find() + self.available = True if force else self.find() def setup(self): @@ -126,7 +126,7 @@ class AbstractEngine(object): __import__(cls.__name) except Exception: try: - out, err = cls().eval("print(23+19)") + out, err = cls(True).eval("print(23+19)") except Exception: res = False else: |