Add delay so that clients can setup properly

This commit is contained in:
2021-09-16 10:41:55 +02:00
parent 1d2a8068dd
commit 83bb549c41

View File

@@ -8,13 +8,14 @@ import (
"log" "log"
"os" "os"
"strconv" "strconv"
"time"
appConfig "github.com/xmpploadtesting/config" appConfig "github.com/xmpploadtesting/config"
"gosrc.io/xmpp" "gosrc.io/xmpp"
"gosrc.io/xmpp/stanza" "gosrc.io/xmpp/stanza"
) )
const rolingStockPresenceMessage = `ROLLING STOCK PRESENCE MESSAGE\n const rolingStockPresenceMessage = `ROLLING STOCK PRESENCE MESSAGE
{ {
"serial": "79101X02Y0029450001CJ2000", "serial": "79101X02Y0029450001CJ2000",
"model": "VEN032FSNWM00", "model": "VEN032FSNWM00",
@@ -129,6 +130,8 @@ func Init() {
}() }()
} }
// Delay For one seccond to allow all clients to connect
time.Sleep(time.Duration(1000000000))
} }