add limit queue running
This commit is contained in:
parent
09d018355d
commit
8e20a7cb0e
@ -14,6 +14,11 @@ import (
|
|||||||
var client *irc.Client
|
var client *irc.Client
|
||||||
var queue *QueueList
|
var queue *QueueList
|
||||||
var channels []string
|
var channels []string
|
||||||
|
var queueRunning bool
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
queueRunning = false
|
||||||
|
}
|
||||||
|
|
||||||
// InitIRC -
|
// InitIRC -
|
||||||
func InitIRC() {
|
func InitIRC() {
|
||||||
@ -140,6 +145,10 @@ func LeaveAllChannel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runQueue() {
|
func runQueue() {
|
||||||
|
if queueRunning == true {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
queueRunning = true
|
||||||
go func() {
|
go func() {
|
||||||
cnt := 0
|
cnt := 0
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user