aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-08-15 12:01:34 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-08-15 12:01:34 +0300
commit186138ced03b7d1250bc1042e81d47ebaec27722 (patch)
treebb8fddcebb0f96a7bf6edf2421942e7838495433 /Software
parentce51bf994fa0896018544698a60fd0740a05293b (diff)
downloadTango-186138ced03b7d1250bc1042e81d47ebaec27722.tar.gz
Tango-186138ced03b7d1250bc1042e81d47ebaec27722.zip
Prevent further attempts to record CSV data after CsvFile has been disposed.
Diffstat (limited to 'Software')
-rw-r--r--Software/Visual_Studio/Tango.CSV/CsvFile.cs5
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)
{