mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-06 15:04:12 +00:00
Make an incoming new TCP serial port connection overwrite the previous one
This commit is contained in:
parent
83e6fa3259
commit
7d2d23fa6a
2 changed files with 75 additions and 62 deletions
12
cmdrunner.go
12
cmdrunner.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue