Only calling Shutdown on valid Completers

This commit is contained in:
Strahinja Val Markovic 2013-09-23 15:23:33 -07:00
parent c29dc44b38
commit c527cda436

View File

@ -38,7 +38,8 @@ class ServerState( object ):
def Shutdown( self ):
for completer in self._filetype_completers.itervalues():
completer.Shutdown()
if completer:
completer.Shutdown()
self._gencomp.Shutdown()
extra_conf_store.Shutdown()