esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imtiaz Ahmed H E" <in.imt...@gmail.com>
Subject Would someone fix this bug...Thank you.
Date Wed, 03 Nov 2010 12:34:28 GMT
In SchedulerActor.scala, 

def sendMessage() {
      val now = System.currentTimeMillis
      val dateString = TimeHelpers.toInternetDate(now)
      Message.create.author(user).
      when(now).
        source("every").
      setTextAndTags("Regularly scheduled action: " + dateString, Nil, Empty).
      foreach{ msg =>
        // Noisy & can't be rejected
          // if (msg.save) {
        messageProcessor ! Distributor.AddMessageToMailbox(user, msg, reason)
              // }
      }
      Stats incr "schedulerMessagesCreated"
      Stats incr "messagesCreated"
      Stats incr "schedulerMessagesCreated"
      Stats incr "messagesCreated"
    }
    

I believe, the following lines should occur only once, they are repeated ?

      Stats incr "schedulerMessagesCreated"
      Stats incr "messagesCreated"
      
Imtiaz
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message