commit 2021-12-16]13:30:04

This commit is contained in:
Godopu 2021-12-16 13:30:07 +09:00
parent 37705d6fe5
commit ce91a11c5a

4
cli.go
View File

@ -71,7 +71,7 @@ func Run() error {
}
for _, e := range ifaces {
_managerObj.onAdded(e)
go _managerObj.onAdded(e)
}
go puserial.WatchNewDevice(ctx, ch_discover)
@ -84,7 +84,7 @@ func Run() error {
}
switch e.Event() {
case notify.Create:
_managerObj.onAdded(e.Path())
go _managerObj.onAdded(e.Path())
// case notify.Remove:
// log.Println("USB Disconnected!!")
// _managerObj.onAdded(e.Path())