Skip to content

Commit

Permalink
Sleep one more time before putting dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulelah Alfuntukh committed Mar 13, 2017
1 parent b6b7839 commit 133406d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ func active(ud tgbotapi.Update) {
editConf.ParseMode = tgbotapi.ModeMarkdown
Bot.Send(editConf)
}
// sleep one more time before putting the dashes
time.Sleep(time.Second * interval)

// replace the speed with dashes to indicate that we are done being live
buf.Reset()
Expand Down Expand Up @@ -1105,6 +1107,8 @@ func info(ud tgbotapi.Update, tokens []string) {
Bot.Send(editConf)

}
// sleep one more time before the dashes
time.Sleep(time.Second * interval)

// at the end write dashes to indicate that we are done being live.
torrentName := mdReplacer.Replace(torrent.Name)
Expand Down

0 comments on commit 133406d

Please sign in to comment.