| 36 | } |
| 37 | |
| 38 | TJsonWriter::~TJsonWriter() { |
| 39 | // if we write to socket it's possible to get exception here |
| 40 | // don't use exceptions in destructors |
| 41 | if (!DontFlushInDestructor) { |
| 42 | try { |
| 43 | Flush(); |
| 44 | } catch (...) { |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | void TJsonWriter::Flush() { |
| 50 | if (Out) { |