lib/calabash-android/operations.rb in calabash-android-0.2.0.pre8 vs lib/calabash-android/operations.rb in calabash-android-0.2.0.pre9

- old
+ new

@@ -180,12 +180,12 @@ end def http(path, data = {}) begin http = Net::HTTP.new "127.0.0.1", @server_port - resp, data = http.post(path, "command=#{data.to_json}", {}) - data - rescue EOFError + resp = http.post(path, "command=#{data.to_json}", {}) + resp.body + rescue sleep 0.5 retry end end