Add delay so that clients can setup properly
This commit is contained in:
@@ -8,13 +8,14 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
appConfig "github.com/xmpploadtesting/config"
|
||||
"gosrc.io/xmpp"
|
||||
"gosrc.io/xmpp/stanza"
|
||||
)
|
||||
|
||||
const rolingStockPresenceMessage = `ROLLING STOCK PRESENCE MESSAGE\n
|
||||
const rolingStockPresenceMessage = `ROLLING STOCK PRESENCE MESSAGE
|
||||
{
|
||||
"serial": "79101X02Y0029450001CJ2000",
|
||||
"model": "VEN032FSNWM00",
|
||||
@@ -129,6 +130,8 @@ func Init() {
|
||||
}()
|
||||
|
||||
}
|
||||
// Delay For one seccond to allow all clients to connect
|
||||
time.Sleep(time.Duration(1000000000))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user