Skip to content

Commit e61c894

Browse files
committed
fix: wait 10s for port to be available to potentially cleanup previous runs
1 parent bf9a179 commit e61c894

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src-tauri/src/utils.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,15 @@ pub fn _setup_sidecars_for_release_builds(
8787
) {
8888
log::info!("Setting up sidecars");
8989

90-
if is_app_updated && _is_port_in_use(daemon_port) {
91-
log::info!("App was just updated and port is still in use, silently waiting for clean up");
90+
if _is_port_in_use(daemon_port) {
91+
if is_app_updated {
92+
log::info!(
93+
"App was just updated and port is still in use, silently waiting for clean up"
94+
);
95+
} else {
96+
log::info!("Port is in use, silently waiting for clean up");
97+
}
98+
9299
for i in 0..10 {
93100
thread::sleep(Duration::from_secs(1));
94101
if !_is_port_in_use(daemon_port) {

0 commit comments

Comments
 (0)