Sanjay Santhanam 41e8777609 fix: correct always-true state check in DockerVM.stop()
The condition 'state != "stopped" or state != "exited"' is a tautology,
so the state check was a no-op and a stop request was sent even for a
container that had already exited.

_get_container_state() never returns "stopped" (only "running",
"paused" or "exited"), so the intended negation of the condition used in
_fix_permissions() requires 'and', not 'or' (De Morgan's law).

Added a regression test asserting no stop query is issued for an
already-exited container.
2026-07-25 10:30:16 -07:00
..
2026-04-09 20:25:44 +08:00
2026-05-18 21:49:01 +03:00
2019-10-08 17:34:16 +08:00
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2025-11-17 11:26:06 +10:00
2020-06-16 21:27:49 +09:30
2019-05-26 15:55:29 +07:00
2020-06-16 13:59:03 +09:30
2024-05-09 17:11:12 +07:00