Timer added in the Crystal pongd.

master
Karchnu 2020-07-03 23:59:38 +02:00
parent 04b2aadaa6
commit 9da79fbd15
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ OptionParser.parse do |parser|
end end
service = IPC::Server.new (service_name) service = IPC::Server.new (service_name)
service.base_timer = 5000 # 5 seconds
service.timer = 5000 # 5 seconds
service.loop do |event| service.loop do |event|
case event case event