lib/neutron/controller.rb in neutron-ruby-electron-0.1.1 vs lib/neutron/controller.rb in neutron-ruby-electron-0.1.2

- old
+ new

@@ -85,10 +85,10 @@ end private def send_string(sock, s) - while(s.length > 0) + while(s && s.length > 0) sent = sock.send(s, 0) s = s[sent..-1] end sock.flush end