Michael Lipp
-
2010-10-24
jsrcpc does not specify what objects can be re-used after re-connecting to a client. I have found one client (AdHoc-Railway) that creates a new session and re-uses exiting SRCPLocomotive and SRCPTurnout objects. It simply creates a new session and sets it as property of existing objects. This results in IO errors, because the session is forwarded to the GL and GA child objects of SRCPLocomotive and SRCPTurnout.
The attached patch fixes this and allows to change the session property of SRCPLocomotive and SRCPTurnout.