Skip to content

Commit 498ae9f

Browse files
adeas31OpenModelica-Hudson
authored andcommitted
If an embedded server is specified.
1 parent 02b0bab commit 498ae9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SimulationRuntime/c/simulation/solver/solver_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,10 @@ int solver_main(DATA* data, threadData_t *threadData, const char* init_initMetho
706706
}
707707
}
708708
data->embeddedServerState = embedded_server_init(data, data->localData[0]->timeValue, solverInfo.currentStepSize, argv_0, omc_real_time_sync_update, port);
709-
infoStreamPrint(LOG_STDOUT, 0, "The embedded server is initialized.");
709+
/* If an embedded server is specified */
710+
if (dllHandle != NULL) {
711+
infoStreamPrint(LOG_STDOUT, 0, "The embedded server is initialized.");
712+
}
710713
wait_for_step(data->embeddedServerState);
711714
#endif
712715
if(0 == retVal) {

0 commit comments

Comments
 (0)