summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index 1149b39e..4bdd1359 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -290,9 +290,13 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
if cdrom is not None:
self.__state.vd.cdrom = cdrom
+ if cdrom:
+ rw = False
if rw is not None:
self.__state.vd.rw = rw
+ if rw:
+ self.__state.vd.cdrom = False
@aiotools.atomic
async def set_connected(self, connected: bool) -> None: