aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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);
}
}