From aab5cd2b36986c51e4a91291e0a083795b0c735f Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 10 Aug 2019 13:44:40 -0400 Subject: Remove device from driver on error. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index ce551d4..2c1cf5f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -396,6 +396,7 @@ where if let Err(e) = d.tick((self.millis)(), self) { warn!("running driver {:?}: {:?}", d, e); if let DriverError::Permanent(a, _) = e { + d.remove_device(a); self.devices.remove(a); } } -- cgit v1.2.3