commit/windows7magnifier: josephsl: Start mag thread: it is now a daemon to prevent NvDA from throwing exception when the thread continues to run while NVDA id dying.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sun, 16 Nov 2014 19:49:00 -0000

1 new commit in windows7magnifier:

https://bitbucket.org/nvdaaddonteam/windows7magnifier/commits/0ad1a7422bac/
Changeset:   0ad1a7422bac
Branch:      refactor
User:        josephsl
Date:        2014-11-16 19:48:45+00:00
Summary:     Start mag thread: it is now a daemon to prevent NvDA from throwing 
exception when the thread continues to run while NVDA id dying.

Affected #:  1 file

diff --git a/addon/globalPlugins/Windows7Magnifier/__init__.py 
b/addon/globalPlugins/Windows7Magnifier/__init__.py
index c424e97..20425a0 100644
--- a/addon/globalPlugins/Windows7Magnifier/__init__.py
+++ b/addon/globalPlugins/Windows7Magnifier/__init__.py
@@ -145,6 +145,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                else:
                        # Run start magnifier in a different thread so commands 
will not be blocked.
                        t = threading.Thread(target=self.startMagnifier)
+                       t.daemon = True
                        t.start()
        # Translators: message presented in input help mode.
        script_toggleMagnifier.__doc__ = _("Toggles magnifier on and off.")

Repository URL: https://bitbucket.org/nvdaaddonteam/windows7magnifier/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/windows7magnifier: josephsl: Start mag thread: it is now a daemon to prevent NvDA from throwing exception when the thread continues to run while NVDA id dying. - commits-noreply