Fixed a bug in Server that was causing it to write results only when it had accumulated more results than at the previous write.