Commit df71480f authored by Alexis Girault's avatar Alexis Girault
Browse files

ENH: delete vrpn_server connection on terminate

parent 92527d49
......@@ -169,7 +169,11 @@ void VRPNDeviceServer::exec()
// connections allocated with vrpn_create_server_connection()
// must decrement their reference to be auto-deleted by VRPN
std::cout<<"VRPNDeviceServer: removing connection references"<<std::endl;
this->connection->removeReference();
std::cout<<"VRPNDeviceServer: closing server"<<std::endl;
delete(this->connection);
this->terminationCompleted = true;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment