## remoteAPI slow stop

Typically: "How do I... ", "How can I... " questions
nex
Posts: 28
Joined: 07 Nov 2016, 15:48

### remoteAPI slow stop

Hello,

When I run a simulation that uses the remote API it takes always quite long to stop after pressing the stop button, while it is pretty snappy without using the remote API.

This is even if all clients are terminated (or none were running in the first place).

Is there a trick to add some code to child scripts that this termination becomes faster? It gets a bit in the way while doing many tests in a quick sequence.

coppelia
Posts: 7838
Joined: 14 Dec 2012, 00:25

### Re: remoteAPI slow stop

Hello,

while sim.getSimulationState()~=sim.simulation_advancing_abouttostop do
end