Skip to content

Commit ce90423

Browse files
Fixed issue #13 (#14)
1 parent fd5d559 commit ce90423

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGES.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
========================
22
pyMagnum Release Notes
33
========================
4+
Version 1.1.3 2020/07/12
5+
-----------------------
6+
- Fixed issue #13 leaving port open when no network detected
7+
48
Version 1.1.2 2020/06/17
59
------------------------
610
- Fixed error in 'running' status for AGS device

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Charles Godwin'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.1.2'
25+
release = '1.1.3'
2626

2727
# -- General configuration ---------------------------------------------------
2828

magnum/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
#
44
# SPDX-License-Identifier: BSD-3-Clause
55
#
6-
__version__="1.1.2"
6+
__version__="1.1.3"

magnum/magnum.py

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def readPackets(self):
213213
#
214214
time.sleep(0.25)
215215
if self.reader.inWaiting() == 0:
216+
self.reader.close()
217+
self.reader = None
216218
raise ConnectionError("There doesn't seem to be a network")
217219
packetsleft = self.packetcount
218220
self.reader.flushInput()

0 commit comments

Comments
 (0)