Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix regression introduced when fixing issue #27
Browse files Browse the repository at this point in the history
Exit hibernation mode if game server engine is CS:GO and console is attached

Signed-off-by: Timo Reichl <thetredev@gmail.com>
  • Loading branch information
thetredev committed Sep 8, 2023
1 parent 5b89865 commit 1bde5ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image/srcds/usr/local/bin/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ _setup_csgo_hibernation_hook_detached() {


_setup_csgo_hibernation_hooks() {
if _is_attached; then
${TMUX_CMD} send-keys -t ${STEAMCMD_SERVER_SESSION_NAME} "sv_hibernate_when_empty 0" "Enter"
fi

_setup_csgo_hibernation_hook_detached
_setup_csgo_hibernation_hook_attached
}
Expand Down

0 comments on commit 1bde5ed

Please sign in to comment.