Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SE Stopped Status before SE service stop #158

Open
jboss38 opened this issue Sep 14, 2014 · 3 comments
Open

SE Stopped Status before SE service stop #158

jboss38 opened this issue Sep 14, 2014 · 3 comments

Comments

@jboss38
Copy link

jboss38 commented Sep 14, 2014

Hi,

I'm using a AutoRestart system for SE Server but the SESE service don't seam to wait for the underlying SE server to really stop before displaying a stopped status

so i get this error :
2014-09-14 15:14:45.022 - Thread: 11 -> Error starting Steam dedicated server: Server port 27016 already in use

And if i'm not here to manually reboot it will never start.

Could you fix this please ?

@jboss38
Copy link
Author

jboss38 commented Sep 17, 2014

So ? any update ?

@LordXaosa
Copy link
Contributor

I know the problem... m_runServerThread.Interrupt(); It should kill server thread only when it will wait for something (like Thread.Sleep etc.) And server process doesn't do it, or do it very rare times (if big map may be). So for now there are two solutions:

  1. m_runServerThread.Abort(); but it's not cool
  2. find method, that fires after Ctrl+C key combination and invoke it, for correct server stop.

@fvgoulet
Copy link
Contributor

There should be a Join on this thread, killing a thread is avoiding the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants