locka99 / opcua

A client and server implementation of the OPC UA specification written in Rust
Mozilla Public License 2.0
480 stars 129 forks source link

fix: don't send CloseSession requests for unregistered sessions #156

Closed milgner closed 2 years ago

milgner commented 2 years ago

I noticed that some operations create a session object that isn't registered with the server but would result in CloseSession requests anyway. The best solution would have been to differentiate these two types of session but for now I just added a quick fix to check for the session id in order to determine whether to send CloseSessionRequest to the server...