lib/tork/server.rb in tork-19.7.0 vs lib/tork/server.rb in tork-19.8.0

- old
+ new

@@ -64,10 +64,10 @@ @clients.delete client end # Returns nil if the message received was not meant for processing. def hear sender, message - JSON.load message + JSON.parse message rescue JSON::ParserError => error if @clients.include? sender # accept non-JSON "command lines" from clients Shellwords.split message else