mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 06:15:31 +00:00
Merge branch 'develop' into broadcast
This commit is contained in:
commit
bbf71a34a7
7 changed files with 288 additions and 8 deletions
12
bw_server.py
12
bw_server.py
|
|
@ -71,6 +71,16 @@ print(server.isRunning)
|
|||
time.sleep(2)
|
||||
print(server.isRunning)
|
||||
|
||||
# test for the timer class
|
||||
from boswatch.utils.timer import RepeatedTimer
|
||||
from boswatch.network.netCheck import NetCheck
|
||||
net = NetCheck()
|
||||
test = RepeatedTimer(3, net.checkConn)
|
||||
test.start()
|
||||
time.sleep(10)
|
||||
print(net.connectionState)
|
||||
test.stop()
|
||||
|
||||
try:
|
||||
header.logoToLog()
|
||||
header.infoToLog()
|
||||
|
|
@ -125,7 +135,7 @@ 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue