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

Commit 5296b68

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Handle the correct command in CORBA
Belonging to [master]: - #2128
1 parent af0968b commit 5296b68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Compiler/Main/Main.mo

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ algorithm
637637
Debug.trace(str);
638638
Debug.trace("------- End recieved Data-----\n");
639639
end if;
640-
(b,replystr) := handleCommand(str) "Print.clearErrorBuf &" ;
640+
(b,replystr) := handleCommand(str);
641641
replystr := if b then replystr else "quit requested, shutting server down\n";
642642
ZeroMQ.sendReply(zmqSocket, replystr);
643643
if not b then
@@ -653,10 +653,9 @@ protected
653653
String str, reply_str;
654654
Boolean cont;
655655
algorithm
656-
str := Corba.waitForCommand();
657-
Print.clearBuf();
658656
cont := true;
659657
while true loop
658+
str := Corba.waitForCommand();
660659
(cont, reply_str) := handleCommand(str);
661660
if cont then
662661
Corba.sendreply(reply_str);

0 commit comments

Comments
 (0)