add repTimer in testserver

This commit is contained in:
Bastian Schroll 2018-09-21 15:27:53 +02:00
parent cecde86005
commit 2b572a659c

View file

@ -57,6 +57,13 @@ except Exception as e: # pragma: no cover
print(e)
exit(1)
from boswatch.utils.timer import RepeatedTimer
from boswatch.network.netCheck import NetCheck
net = NetCheck()
test = RepeatedTimer(10, net.checkConn)
test.start()
try:
header.logoToLog()
header.infoToLog()
@ -111,10 +118,10 @@ try:
#
# t1 = threading.Timer(1, eins)
# t2 = threading.Timer(5, zwei)
t3 = threading.Timer(15, drei)
# t3 = threading.Timer(600, drei)
# t1.start()
# t2.start()
t3.start()
# t3.start()
bwServer = TCPServer(bwConfig.getInt("Server", "PORT"))
if bwServer.start():