src/JackHandler.h
branchv_0
changeset 9 14cf28d7681c
parent 8 27579c5cdc51
child 10 6aa881c10efd
--- a/src/JackHandler.h	Fri Oct 02 00:18:34 2020 +0200
+++ b/src/JackHandler.h	Fri Oct 02 00:34:14 2020 +0200
@@ -97,8 +97,7 @@
 		if (jackError) throw JackException(L"Could not activate client.");
 
 		// Wait for a port connection, because it does not make much sense to send MIDI events nowhere:
-		// TODO: configurable waiting (number of connections)
-		while (jack_port_connected(jackPort) == 0) usleep(10000);
+		while (jack_port_connected(jackPort) < configuration.requiredJackConnections) usleep(10000);
 
 		// TODO: configurable auto-connection to another client/port
 	}