Skip to content

[BUG?] About the automatic shutdown process after 60 seconds of not listening. #1297

Description

@MusclePr

Is this a bug?
The auto-shutdown after 60 seconds of not listening doesn't seem to work.

serverdowntries=0

    serverdowntries=0

    sleep 5

    while true; do
      local pid="$(getServerPID)"
      if [ "$pid" == "$serverpid" ]; then
        serverdowntries=0 # ... Always reset here.
        if [ "$serveronline" -eq 0 ]; then
          :
        elif isTheServerUp; then
          (( serverdowntries++ )) # ... Always 1.

          if (( serverdowntries > 12 )); then
            # **No reach here**

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions