Added call to communicate() after terminating server

This commit is contained in:
unknown 2014-02-26 22:23:29 -06:00
parent 3da402fdf9
commit a4e28157c4

View File

@ -149,6 +149,7 @@ class YouCompleteMe( object ):
def _ServerCleanup( self ): def _ServerCleanup( self ):
if self._IsServerAlive(): if self._IsServerAlive():
self._server_popen.terminate() self._server_popen.terminate()
self._server_popen.communicate()
utils.RemoveIfExists( self._temp_options_filename ) utils.RemoveIfExists( self._temp_options_filename )
if not self._user_options[ 'server_keep_logfiles' ]: if not self._user_options[ 'server_keep_logfiles' ]: