[chronojump] Improving cp/sp disconnection to fix locks on MacOSX
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Improving cp/sp disconnection to fix locks on MacOSX
- Date: Mon, 12 Dec 2016 16:39:55 +0000 (UTC)
commit dd2a4f34022adc17019ad838eafa12a66b8e0f84
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 12 17:39:28 2016 +0100
Improving cp/sp disconnection to fix locks on MacOSX
src/chronopic2016.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/chronopic2016.cs b/src/chronopic2016.cs
index fcd26c5..0547a61 100644
--- a/src/chronopic2016.cs
+++ b/src/chronopic2016.cs
@@ -365,8 +365,11 @@ public class Chronopic2016
LogB.Information("Closing sp");
sp.Close();
+ LogB.Information("Flushing cp to see if helps on OSX port busy");
+ cp.FlushByTimeOut();
+
LogB.Information("Disposing cp to see if helps on OSX port busy");
- //cp = null;
+ cp = null;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]