Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 4c05be3

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix suffix for ZMQ
Belonging to [master]: - #2188
1 parent 5056d0b commit 4c05be3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Compiler/Main/Main.mo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,10 @@ protected function interactivemodeZMQ
626626
protected
627627
Option<Integer> zmqSocket;
628628
Boolean b;
629-
String str,replystr;
629+
String str,replystr,suffix;
630630
algorithm
631-
zmqSocket := ZeroMQ.initialize(Flags.getConfigString(Flags.ZEROMQ_FILE_SUFFIX));
631+
suffix := Flags.getConfigString(Flags.ZEROMQ_FILE_SUFFIX);
632+
zmqSocket := ZeroMQ.initialize(if suffix=="" then "" else ("."+suffix));
632633
false := valueEq(SOME(0), zmqSocket);
633634
while true loop
634635
str := ZeroMQ.handleRequest(zmqSocket);

0 commit comments

Comments
 (0)