You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/03/21 23:25:40 UTC

[mynewt-newtmgr] branch master updated: nmserial: Clear `closing` flag on close success

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git


The following commit(s) were added to refs/heads/master by this push:
     new 7390e5f  nmserial: Clear `closing` flag on close success
     new 4c32818  Merge pull request #114 from ccollins476ad/close-serial
7390e5f is described below

commit 7390e5fa0f6fcc22fdd8e631ff4f0fc72b9e3ad8
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Mar 21 16:23:28 2019 -0700

    nmserial: Clear `closing` flag on close success
---
 nmxact/nmserial/serial_xport.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nmxact/nmserial/serial_xport.go b/nmxact/nmserial/serial_xport.go
index 5afd071..62bdfc1 100644
--- a/nmxact/nmserial/serial_xport.go
+++ b/nmxact/nmserial/serial_xport.go
@@ -220,6 +220,8 @@ func (sx *SerialXport) Stop() error {
 
 	err := sx.port.Close()
 	sx.wg.Wait()
+
+	sx.closing = false
 	return err
 }