Fix: wrong wait logic

This commit is contained in:
xjasonlyu
2022-03-28 23:14:00 +08:00
parent 9d7dacbea1
commit 42d6c96b6b
4 changed files with 18 additions and 12 deletions

View File

@@ -83,7 +83,6 @@ func (e *engine) start() error {
func (e *engine) stop() (err error) {
if e.device != nil {
err = e.device.Close()
e.device.Wait()
}
if e.stack != nil {
e.stack.Close()