Skip to content

Commit d319362

Browse files
committed
force
1 parent 9135988 commit d319362

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/rovr/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,10 @@ def watch_for_changes_and_update(self) -> None:
591591
state_mtime = path.getmtime(state_path)
592592
drives = lambda: self.app.query_one(PinnedSidebar).DRIVES # noqa: E731
593593
drive_update_every = int(config["interface"]["drive_watcher_frequency"])
594-
count: int = -1
594+
count: int = -2
595595
style_available: bool = self.CUSTOM_STYLE_AVAILABLE
596596
custom_style_path = path.join(RovrVars.ROVRCONFIG, "style.tcss")
597+
new_drives = []
597598

598599
i_should_shut_down = lambda: ( # noqa: E731
599600
self._shutdown_event.is_set() or self.return_code is not None

src/rovr/functions/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,17 @@ def multiprocessing_process_error_checker(app: App, exc: Exception) -> bool:
214214
case None:
215215
# try forkserver
216216
try:
217-
multiprocessing.set_start_method("forkserver")
217+
multiprocessing.set_start_method("forkserver", force=True)
218218
app.notify("multiprocessing is now using forkserver")
219219
except ValueError as val_exc:
220220
if "cannot find context" in str(val_exc):
221-
multiprocessing.set_start_method("spawn")
221+
multiprocessing.set_start_method("spawn", force=True)
222222
app.notify("multiprocessing is now using spawn")
223223
case "fork": # theoretically this shouldn't happen
224-
multiprocessing.set_start_method("forkserver")
224+
multiprocessing.set_start_method("forkserver", force=True)
225225
app.notify("multiprocessing is now using forkserver")
226226
case "forkserver":
227-
multiprocessing.set_start_method("spawn")
227+
multiprocessing.set_start_method("spawn", force=True)
228228
app.notify("multiprocessing is now using spawn")
229229
case "spawn":
230230
# nothing else we can do, except forcefully stop using Process

0 commit comments

Comments
 (0)