Skip to content

Commit

Permalink
fixed missing thread start
Browse files Browse the repository at this point in the history
  • Loading branch information
sqall01 committed Dec 25, 2018
1 parent 105f431 commit 99de5e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alertClientPushNotification/instanceInfo.json
@@ -1 +1 @@
{"files": {"config/example_template.msg": "038ff581a15ea7c7c8dc595cccc126bacff10342a2857ff46a012bb0f5efa4c6", "init.d_example/alertRalertClientPushNotification.service": "048607ff5620d2c4d7390a6260e31827d0dff2d90e7e842a7296bbd1dead4ca5", "config/config.xml.template": "0b66ab1b8c955481e4b8d36dab5f46e7e0e528fed75ad3a53182b380ab10f515", "alertRupdate.py": "9fb518ca9ecc74ea0293a05e205f7ff0ff21273607d3cfcd2a2123aaba9a5090", "lib/update.py": "f6ee389e7ad53240c6b9300295da3acfbc242fdffe91b194831c0d48df383680", "init.d_example/alertRalertClientPushNotification.sh": "edb962bf1e71dd484ec194145dc9cf0bac9930232ea57632440512a1cf2068a2", "lib/__init__.py": "74a51cc4060f13a0adbc9fb353134915ecfed2924daf5786c690c131610e85c9", "CHANGELOG.md": "1f3e12bc510aeb5df0db834f7f275e082785f187266b4bdf89df055d9e166070", "testPushConfiguration.py": "f428c9bc876ca57c49560a7bc13c61645535eed0913f61432d7e853376694af8", "lib/globalData.py": "53f841e8805f7ce0852de4e8357b7aad169ad766295a6c5adfe61d292c6ab3dc", "alertRclient.py": "8947fe25645663e2001e4d40b88b2e643a108fe7c5b5790dd6529f0ec7bc34a0", "README.md": "2f49700938a7615c3e81aa5ec12952bd18f3acdfe7f1ad36d7750a065707757e", "lib/alert.py": "dc89a3c48d758fcd378d80e37635fe703df351bfe53d01b5b8a469e9210b8f79", "lib/smtp.py": "0f322776d7626d85b4041c66534d8742d1294b67cbdbba753f6092a749aaf51c", "lib/client.py": "7e03081559339bf7369622873c6c6ed31c7d3c5d5edd31c7dfd710b4089bda86", "config/push.alertr.de.crt": "99847be5f6a28107af1ef6a590dbdcc5b9cf792658bef2a9f2faa5d806642c7a", "lib/localObjects.py": "c6749540445e4307674b5acb50601ffd14707015e8dbc36a67ce59f9969a834d"}, "version": 0.501, "rev": 2, "dependencies": {"pip": [{"import": "lightweightpush", "version": "0.0.5", "packet": "lightweightpush"}]}}
{"files": {"config/example_template.msg": "038ff581a15ea7c7c8dc595cccc126bacff10342a2857ff46a012bb0f5efa4c6", "init.d_example/alertRalertClientPushNotification.service": "048607ff5620d2c4d7390a6260e31827d0dff2d90e7e842a7296bbd1dead4ca5", "config/config.xml.template": "0b66ab1b8c955481e4b8d36dab5f46e7e0e528fed75ad3a53182b380ab10f515", "alertRupdate.py": "9fb518ca9ecc74ea0293a05e205f7ff0ff21273607d3cfcd2a2123aaba9a5090", "lib/update.py": "f6ee389e7ad53240c6b9300295da3acfbc242fdffe91b194831c0d48df383680", "init.d_example/alertRalertClientPushNotification.sh": "edb962bf1e71dd484ec194145dc9cf0bac9930232ea57632440512a1cf2068a2", "lib/__init__.py": "74a51cc4060f13a0adbc9fb353134915ecfed2924daf5786c690c131610e85c9", "CHANGELOG.md": "1f3e12bc510aeb5df0db834f7f275e082785f187266b4bdf89df055d9e166070", "testPushConfiguration.py": "f428c9bc876ca57c49560a7bc13c61645535eed0913f61432d7e853376694af8", "lib/globalData.py": "53f841e8805f7ce0852de4e8357b7aad169ad766295a6c5adfe61d292c6ab3dc", "alertRclient.py": "8947fe25645663e2001e4d40b88b2e643a108fe7c5b5790dd6529f0ec7bc34a0", "README.md": "2f49700938a7615c3e81aa5ec12952bd18f3acdfe7f1ad36d7750a065707757e", "lib/alert.py": "4a7229b912a94c427e7c2597c46e0623a5db31a09bd09054ed0617c60565737b", "lib/smtp.py": "0f322776d7626d85b4041c66534d8742d1294b67cbdbba753f6092a749aaf51c", "lib/client.py": "7e03081559339bf7369622873c6c6ed31c7d3c5d5edd31c7dfd710b4089bda86", "config/push.alertr.de.crt": "99847be5f6a28107af1ef6a590dbdcc5b9cf792658bef2a9f2faa5d806642c7a", "lib/localObjects.py": "c6749540445e4307674b5acb50601ffd14707015e8dbc36a67ce59f9969a834d"}, "version": 0.501, "rev": 2, "dependencies": {"pip": [{"import": "lightweightpush", "version": "0.0.5", "packet": "lightweightpush"}]}}
5 changes: 3 additions & 2 deletions alertClientPushNotification/lib/alert.py
Expand Up @@ -220,8 +220,9 @@ def triggerAlert(self, sensorAlert):
tempMsg = self._replaceWildcards(sensorAlert, self.msgText)
tempSbj = self._replaceWildcards(sensorAlert, self.subject)

threading.Thread(target=self._sendMessage,
args=(tempSbj, tempMsg, sensorAlert))
thread = threading.Thread(target=self._sendMessage,
args=(tempSbj, tempMsg, sensorAlert))
thread.start()


def stopAlert(self, sensorAlert):
Expand Down

0 comments on commit 99de5e3

Please sign in to comment.