mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
add repTimer in testserver
This commit is contained in:
parent
cecde86005
commit
2b572a659c
11
bw_server.py
11
bw_server.py
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue