Skip to content

Commit

Permalink
Add Popen.wait() after sending the stopserver command to OmniSharp. T…
Browse files Browse the repository at this point in the history
…his fixes tests when using a fixed port
  • Loading branch information
akhosravian committed Jan 24, 2015
1 parent 9112e52 commit 19dfbc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ycmd/completers/cs/cs_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _StartServer( self, request_data ):
def _StopServer( self ):
""" Stop the OmniSharp server """
self._GetResponse( '/stopserver' )
self._omnisharp_phandle.wait()
self._omnisharp_port = None
self._omnisharp_phandle = None
if ( not self.user_options[ 'server_keep_logfiles' ] ):
Expand Down

0 comments on commit 19dfbc5

Please sign in to comment.