This commit is contained in:
Luke D. Jones
2024-04-03 16:14:18 +13:00
parent 5178bf1d1a
commit 2f844ac151
4 changed files with 3 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ pub fn on_tmp_dir_exists() -> Result<TempDir, std::io::Error> {
ipc_file.write_all(&[SHOW_GUI, 0])?;
// tiny sleep to give the app a chance to respond
sleep(Duration::from_millis(10));
ipc_file.read(&mut buf).ok();
ipc_file.read_exact(&mut buf).ok();
// First entry is the actual state
if buf[0] == SHOWING_GUI {