vnc & exit

Asked by David ENJOLRAS on 2017-06-28

code:

vnc = vncStart("atemqesxhost21p", 5901)
vnc.stop
exit(0)

generate :
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8

[error (28/06/17 08:10:18)] script [ BMR ] stopped with error in line 4
[error (28/06/17 08:10:18)] java.util.ConcurrentModificationException ( java.util.ConcurrentModificationException )

==> How to provide an exit code after after use vncStart ?
( given than exit(0) alone works well )

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
David ENJOLRAS
Solved:
2017-06-29
Last query:
2017-06-29
Last reply:
2017-06-28
RaiMan (raimund-hocke) said : #1

vnc = vncStart("atemqesxhost21p", 5901)
vnc.stop
exit(0)

... are only 3 lines, but the error says:
 stopped with error in line 4

furthermore it must be:
vnc.stop()

that's all I have.
maybe a blank line in the top of my script ?

vnc.stop()
is the solution !