Bug 767077 - Fix hang when converting Telemetry pings to Unicode. r=froydnj

This commit is contained in:
Nicolas Chaim Echeverria 2012-07-05 11:15:40 -04:00
parent 79b4ec6fdf
commit e945f436f9

View File

@ -723,7 +723,7 @@ TelemetryPing.prototype = {
RW_OWNER, ostream.DEFER_OPEN);
if (sync) {
let utf8String = converter.ConvertToUnicode(pingString);
let utf8String = converter.ConvertFromUnicode(pingString);
utf8String += converter.Finish();
let amount = ostream.write(utf8String, utf8String.length);
this.finishTelemetrySave(amount == utf8String.length, ostream);