Commit c86b5044 authored by csharptest's avatar csharptest Committed by rogerk

Missing braces :)

parent f52ec95a
......@@ -246,8 +246,10 @@ namespace Google.ProtocolBuffers.Serialization
{
if (disposing)
{
while(_counter.Count > 1)
while (_counter.Count > 1)
{
WriteMessageEnd();
}
}
base.Dispose(disposing);
......
......@@ -78,8 +78,10 @@ namespace Google.ProtocolBuffers.Serialization
{
if (disposing)
{
while(_messageOpenCount > 0)
while (_messageOpenCount > 0)
{
WriteMessageEnd();
}
_output.Close();
}
......@@ -163,7 +165,9 @@ namespace Google.ProtocolBuffers.Serialization
public override void WriteMessageEnd()
{
if (_messageOpenCount <= 0)
{
throw new InvalidOperationException();
}
_output.WriteEndElement();
_output.Flush();
......
......@@ -131,7 +131,9 @@ namespace Google.ProtocolBuffers
if (output != null)
{
if (position > 0)
{
Flush();
}
output.Dispose();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment