Making the python thread not hang Vim on exit

As the Pytho docs say, "The entire Python program exits when no alive non-daemon
threads are left." Basically, the daemon threads are safely killed.
This commit is contained in:
Strahinja Val Markovic 2013-03-24 15:04:00 -07:00
parent 1c78971acd
commit 6fb784e61b

View File

@ -57,6 +57,7 @@ class JediCompleter( Completer ):
def _start_completion_thread( self ):
self._completion_thread = Thread( target=self.SetCandidates )
self._completion_thread.daemon = True
self._completion_thread.start()