Fixed indentation, fixed calling .strip on nil in TACNET Client#read

This commit is contained in:
2023-01-30 08:42:46 -06:00
parent 3a8f4e5860
commit c312f4839d
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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