Skip to content

Commit 1b4adfe

Browse files
committed
remote: do not wait on discovery if not enabled
1 parent 35a5fc7 commit 1b4adfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/CL/devices/remote/communication.c

+5
Original file line numberDiff line numberDiff line change
@@ -918,10 +918,15 @@ pocl_remote_reader_pthread (void *aa)
918918
finish_running_cmd (cmd, NETCMD_FAILED);
919919
}
920920
POCL_UNLOCK (inflight->mutex);
921+
922+
#if defined(ENABLE_REMOTE_DISCOVERY_AVAHI) \
923+
|| defined(ENABLE_REMOTE_DISCOVERY_DHT) \
924+
|| defined(ENABLE_REMOTE_DISCOVERY_ANDROID)
921925
POCL_LOCK (connection->discovery_reconnect_guard.mutex);
922926
POCL_WAIT_COND (connection->discovery_reconnect_guard.cond,
923927
connection->discovery_reconnect_guard.mutex);
924928
POCL_UNLOCK (connection->discovery_reconnect_guard.mutex);
929+
#endif
925930
}
926931
goto TRY_RECONNECT;
927932
}

0 commit comments

Comments
 (0)