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 part of the code only considers close_or_terminate when the object has already been created. However, if the object gets stuck in __init__, the serial file descriptor, for example, will never be closed. A similar bug may occur with other objects as well.
To Reproduce
Steps to reproduce the behavior:
Raise any error in the self._start() function of the Serial class.
self.proc will never be closed.
Expected behavior
All objects should be processed properly. If there is an exception, any opened resources should be closed.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Serial File Descriptor Not Closed When Error Occurs in Serial.__init__
Serial File Descriptor Not Closed When Error Occurs in Serial.__init__ (RDT-912)
Sep 30, 2024
Describe the bug
This part of the code only considers
close_or_terminate
when the object has already been created. However, if the object gets stuck in__init__
, the serial file descriptor, for example, will never be closed. A similar bug may occur with other objects as well.To Reproduce
Steps to reproduce the behavior:
self._start()
function of theSerial
class.self.proc
will never be closed.Expected behavior
All objects should be processed properly. If there is an exception, any opened resources should be closed.
The text was updated successfully, but these errors were encountered: