Kitware / wslink

Python/JavaScript library for communicating over WebSocket
https://kitware.github.io/wslink/
BSD 3-Clause "New" or "Revised" License
83 stars 27 forks source link

RPC call application.exit.later unsuccessful: connection not open #139

Closed jinjilynn closed 1 year ago

jinjilynn commented 1 year ago

Hey guys, I've encountered a problem. When we call the destroy method of SmartConnect, the cleanUp function within it initiates a session.close operation first. This results in an error when the destroy method of WebsocketConnection is called immediately afterwards, as model.session.call('application.exit.later', [timeout]) is called on a session that's already been closed. Besides, could you help explain the function of 'application.exit.later' to me?

{code: -32099, message: 'RPC call application.exit.later unsuccessful: connection not open'}
jourdain commented 1 year ago

Close later allow the server to properly exit once the network is fully disconnected and taking care.

jourdain commented 1 year ago

:tada: This issue has been resolved in version 1.10.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: