mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 05:22:34 +00:00
Fixed indentation, fixed calling .strip on nil in TACNET Client#read
This commit is contained in:
@@ -52,7 +52,7 @@ module TAC
|
||||
return minutes + seconds
|
||||
end
|
||||
|
||||
def play_sound(sound)
|
||||
def play_sound(sound)
|
||||
path = nil
|
||||
case sound
|
||||
when :autonomous_countdown
|
||||
|
||||
@@ -119,14 +119,15 @@ module TAC
|
||||
|
||||
def read
|
||||
begin
|
||||
message = @socket.gets.strip
|
||||
@socket.gets&.strip
|
||||
|
||||
rescue => error
|
||||
@last_socket_error = error
|
||||
@socket_error = true
|
||||
|
||||
log.e(TAG, error.message)
|
||||
|
||||
message = ""
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user