Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c92908a

Browse files
committed
Release of version 1.4.9
1 parent 0fb8d78 commit c92908a

File tree

8 files changed

+14
-135
lines changed

8 files changed

+14
-135
lines changed

.github/ISSUE_TEMPLATES/---bug-report.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATES/---feature-request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/ISSUE_TEMPLATES/---question.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/stale_issue.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

AWSIoTPythonSDK/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
__version__ = "1.4.8"
2-
3-
1+
__version__ = "1.4.9"

AWSIoTPythonSDK/core/shadow/deviceShadow.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ def shadowGet(self, srcCallback, srcTimeout):
246246
# One publish
247247
self._shadowManagerHandler.basicShadowPublish(self._shadowName, "get", currentPayload)
248248
# Start the timer
249-
self._tokenPool[currentToken].start()
249+
with self._dataStructureLock:
250+
if currentToken in self._tokenPool:
251+
self._tokenPool[currentToken].start()
250252
return currentToken
251253

252254
def shadowDelete(self, srcCallback, srcTimeout):
@@ -301,7 +303,9 @@ def shadowDelete(self, srcCallback, srcTimeout):
301303
# One publish
302304
self._shadowManagerHandler.basicShadowPublish(self._shadowName, "delete", currentPayload)
303305
# Start the timer
304-
self._tokenPool[currentToken].start()
306+
with self._dataStructureLock:
307+
if currentToken in self._tokenPool:
308+
self._tokenPool[currentToken].start()
305309
return currentToken
306310

307311
def shadowUpdate(self, srcJSONPayload, srcCallback, srcTimeout):
@@ -359,7 +363,9 @@ def shadowUpdate(self, srcJSONPayload, srcCallback, srcTimeout):
359363
# One publish
360364
self._shadowManagerHandler.basicShadowPublish(self._shadowName, "update", JSONPayloadWithToken)
361365
# Start the timer
362-
self._tokenPool[currentToken].start()
366+
with self._dataStructureLock:
367+
if currentToken in self._tokenPool:
368+
self._tokenPool[currentToken].start()
363369
else:
364370
raise ValueError("Invalid JSON file.")
365371
return currentToken

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
CHANGELOG
33
=========
44

5+
1.4.9
6+
=====
7+
* bugfix: Fixing possible race condition with timer in deviceShadow.
8+
59
1.4.8
610
=====
711
* improvement: Added support for subscription acknowledgement callbacks while offline or resubscribing

README.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
## New Version Available
2-
3-
A new AWS IoT Device SDK is [now available](https://github.com/awslabs/aws-iot-device-sdk-python-v2). It is a complete rework, built to improve reliability, performance, and security. We invite your feedback!
4-
5-
This SDK will no longer receive feature updates, but will receive security updates.
6-
71
AWS IoT Device SDK for Python
82
=============================
93

0 commit comments

Comments
 (0)