Cleaned initialize module by removing try except loop and passes
This commit is contained in:
+3
-18
@@ -6,37 +6,22 @@ from plugins.rmass.monitors import rmassmonitor
|
|||||||
from plugins.rmass.actions import refresh_tokens
|
from plugins.rmass.actions import refresh_tokens
|
||||||
|
|
||||||
import login
|
import login
|
||||||
|
import synapsemessagepush
|
||||||
|
|
||||||
lifecycles ={}
|
lifecycles ={}
|
||||||
|
|
||||||
try:
|
|
||||||
lifecycles[rmassmonitor.name] = {}
|
lifecycles[rmassmonitor.name] = {}
|
||||||
lifecycles[rmassmonitor.name]["mode"] = "continuous"
|
lifecycles[rmassmonitor.name]["mode"] = "continuous"
|
||||||
thread, lifecycles = buildThread(rmassmonitor, lifecycles)
|
thread, lifecycles = buildThread(rmassmonitor, lifecycles)
|
||||||
except ConnectionError:
|
|
||||||
print("Connection Error caught. Recovering")
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
|
||||||
lifecycles[refresh_tokens.name] = {}
|
lifecycles[refresh_tokens.name] = {}
|
||||||
lifecycles[refresh_tokens.name]["mode"] = "continuous"
|
lifecycles[refresh_tokens.name]["mode"] = "continuous"
|
||||||
thread, lifecycles = buildThread(refresh_tokens, lifecycles)
|
thread, lifecycles = buildThread(refresh_tokens, lifecycles)
|
||||||
except ConnectionError:
|
|
||||||
print("Connection Error caught. Recovering")
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
#lifecycles = {}
|
|
||||||
#try:
|
|
||||||
# lifecycles[rmassmonitor.name] = lifecycles
|
|
||||||
# lifecycles[rmassmonitor.name]["mode"] = "continuous"
|
|
||||||
# thread, lifecycles = buildThread(rmassmonitor, lifecycles)
|
|
||||||
#except ConnectionError:
|
|
||||||
# print("Connection Error caught. Recovering")
|
|
||||||
# pass
|
|
||||||
|
|
||||||
thread = threading.Thread(
|
thread = threading.Thread(
|
||||||
target=startServer,
|
target=startServer,
|
||||||
#args=(module, lifecycles)
|
#args=(module, lifecycles)
|
||||||
|
name="RMASS Bridge Server"
|
||||||
)
|
)
|
||||||
thread.start()
|
thread.start()
|
||||||
Reference in New Issue
Block a user