Skip to content

EmittingSerial doesn't stop timer #5

@chrisstjohn

Description

@chrisstjohn

After stopping MainLoop() using terminate(), the timer continues to run and in my case writes to a port that has been closed....
File "/Library/Python/2.7/site-packages/serial_mock/mock.py", line 395, in _on_emit self._write_to_stream(self.emit) File "/Library/Python/2.7/site-packages/serial_mock/mock.py", line 262, in _write_to_stream self.stream.write("%s%s"%(response,self.endline)) File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 517, in write raise portNotOpenError SerialException: Attempting to use a port that is not open

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions