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:
parent
1c78971acd
commit
6fb784e61b
@ -57,6 +57,7 @@ class JediCompleter( Completer ):
|
|||||||
|
|
||||||
def _start_completion_thread( self ):
|
def _start_completion_thread( self ):
|
||||||
self._completion_thread = Thread( target=self.SetCandidates )
|
self._completion_thread = Thread( target=self.SetCandidates )
|
||||||
|
self._completion_thread.daemon = True
|
||||||
self._completion_thread.start()
|
self._completion_thread.start()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user