Skip to content

Commit

Permalink
Kill the process first before sending Telegram msg
Browse files Browse the repository at this point in the history
If the internet connection is completely lost we do not want to wait until it is available again
  • Loading branch information
tzerk committed Mar 19, 2017
1 parent 7e3fceb commit 1146a2c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/watchdog.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ func Watchdog(

// Only procede with exit routine if we reached the fail threshold
if PENALTY >= config.FailLimit {
// Use the Telegram API to send a message
Send_TelegramMessage(config, label_Update, pb)

// Optional: shutdown the computer if the monitored process is disconnected
if config.ShutdownOnDC {
Expand Down

1 comment on commit 1146a2c

@tzerk
Copy link
Owner Author

@tzerk tzerk commented on 1146a2c Mar 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refers to #10

Please sign in to comment.