Skip to content

Commit

Permalink
mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Jul 26, 2023
1 parent f83d47f commit f3f72bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 248 deletions.
247 changes: 0 additions & 247 deletions pymodbus/transport/old_serial.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pymodbus/transport/transport_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def close(self):
if not self.serving.done():
self.serving.set_result(True)
self._remove_reader()
if self.get_write_buffer_size() == 0:
if not self.get_write_buffer_size():
self._remove_writer()
self._loop.call_soon(self._call_connection_lost, None)

Expand Down

0 comments on commit f3f72bf

Please sign in to comment.