diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-15 12:01:34 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-08-15 12:01:34 +0300 |
| commit | 186138ced03b7d1250bc1042e81d47ebaec27722 (patch) | |
| tree | bb8fddcebb0f96a7bf6edf2421942e7838495433 /Software/Visual_Studio | |
| parent | ce51bf994fa0896018544698a60fd0740a05293b (diff) | |
| download | Tango-186138ced03b7d1250bc1042e81d47ebaec27722.tar.gz Tango-186138ced03b7d1250bc1042e81d47ebaec27722.zip | |
Prevent further attempts to record CSV data after CsvFile has been disposed.
Diffstat (limited to 'Software/Visual_Studio')
| -rw-r--r-- | Software/Visual_Studio/Tango.CSV/CsvFile.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.CSV/CsvFile.cs b/Software/Visual_Studio/Tango.CSV/CsvFile.cs index 4a4e8d99f..1f21ce6e8 100644 --- a/Software/Visual_Studio/Tango.CSV/CsvFile.cs +++ b/Software/Visual_Studio/Tango.CSV/CsvFile.cs @@ -246,6 +246,11 @@ namespace Tango.CSV /// <param name="record">The record.</param> public void Append(T record) { + if (_is_disposed) + { + return; + } + if (CsvFile.UseTasks) { |
