lib/volt/server/message_bus/message_encoder.rb in volt-0.9.5.pre9 vs lib/volt/server/message_bus/message_encoder.rb in volt-0.9.5.pre11

- old
+ new

@@ -11,10 +11,10 @@ if windows Volt.logger.warn('Currently Message Bus encryption is not supported on windows.') end # Message bus is encrypted by default - disable = Volt.config.message_bus.try(:disable_encryption) + disable = (msg_bus = Volt.config.message_bus) && msg_bus.disable_encryption @encrypted = !windows && (disable != true) if @encrypted # Setup a RbNaCl simple box for handling encryption require 'base64' \ No newline at end of file