You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is currently difficult because closing a port is an asynchronous operation, and therefore can't be triggered by the time the object is being deallocated. One possible fix is to create a helper object that is responsible for actually closing the port, whose lifetime is independent of the ORSSerialPort instance, and that can keep itself alive until the port is actually closed.
The text was updated successfully, but these errors were encountered:
armadsen
changed the title
Make it so -dealloc also closes the port if needed
Make it so -[ORSSerialPort dealloc] also closes the port if needed
Feb 17, 2019
This is currently difficult because closing a port is an asynchronous operation, and therefore can't be triggered by the time the object is being deallocated. One possible fix is to create a helper object that is responsible for actually closing the port, whose lifetime is independent of the
ORSSerialPort
instance, and that can keep itself alive until the port is actually closed.The text was updated successfully, but these errors were encountered: