lib/apnserver/client.rb in bpoweski-apnserver-0.1.6 vs lib/apnserver/client.rb in bpoweski-apnserver-0.1.7

- old
+ new

@@ -26,9 +26,11 @@ end def disconnect! @ssl.close @sock.close + @ssl = nil + @sock = nil end def write(notification) puts "#{Time.now} [#{host}:#{port}] Device: #{notification.device_token.unpack('H*')} sending #{notification.json_payload}" @ssl.write(notification.to_bytes) \ No newline at end of file