Fixed delay of stanca presence messages
This commit is contained in:
@@ -117,12 +117,11 @@ func Init() {
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
||||
defer wg.Done()
|
||||
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.CommandReplyDelay))
|
||||
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)
|
||||
// Delay For two seccond to allow all clients to connect
|
||||
time.Sleep(time.Duration(statusMesageDelay * 1000000000))
|
||||
defer wg.Done()
|
||||
|
||||
client, err := xmpp.NewClient(&xmppClient.Config, xmppService.Router, errorHandler)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user