storm37000 / gmsv_antifreeze

Automatically kill a frozen/locked up Garrysmod srcds instance
MIT License
11 stars 2 forks source link

Sometimes the server process doesnt close and throws this error. #3

Open Synkstar opened 2 years ago

Synkstar commented 2 years ago
terminate called after throwing an instance of 'std::exception'
  what():  std::exception
storm37000 commented 2 years ago

It always stops for me, make sure your not launching with -debug and it being stuck doing the cat command (you can check this with the tree view in htop).

Synkstar commented 2 years ago

Yeah idk its strange. I switched the throw std::exception() part out with just std::terminate() and it seems to work fine now. I dont really know c++ very well wish I did because there is some stuff I want to do with it personally. Well with like garrysmod_common and the sourcesdk as well.

storm37000 commented 2 years ago

Sorry, I have been busy as of late. I think I did an exception throw so that things shut down more gracefully as a terminate is a hard kill. I could implement it to do a terminate if the previous stop method fails after some time. Or I can look into inducing a segfault instead.

storm37000 commented 2 years ago

Close the issue if the current code is properly closing it for you.