Make an incoming new TCP serial port connection overwrite the previous one

This commit is contained in:
Nonoo 2020-11-05 23:59:39 +01:00
parent 83e6fa3259
commit 7d2d23fa6a
2 changed files with 75 additions and 62 deletions

View file

@ -84,13 +84,13 @@ func (c *cmdRunner) startIfNeeded(cmdLine string) {
go c.run(cmdLine)
}
func (c *cmdRunner) restart() {
if c.restartNeeded == nil {
return
}
// func (c *cmdRunner) restart() {
// if c.restartNeeded == nil {
// return
// }
c.restartNeeded <- true
}
// c.restartNeeded <- true
// }
func (c *cmdRunner) stop() {
if c.runEndNeeded == nil {