[Pidgin] #12440: perl Purple::timeout_add multiplies calls to given subroutine (using dummy plugin code from doxygen)

Pidgin trac at pidgin.im
Thu Aug 5 22:37:07 EDT 2010


#12440: perl Purple::timeout_add multiplies calls to given subroutine (using dummy
plugin code from doxygen)
-------------------------+--------------------------------------------------
 Reporter:  marcelser    |        Owner:         
     Type:  defect       |       Status:  new    
Milestone:               |    Component:  plugins
  Version:  2.7.1        |   Resolution:         
 Keywords:  plugins bug  |  
-------------------------+--------------------------------------------------

Comment(by datallah):

 If you look at the
 [http://developer.pidgin.im/doxygen/dev/html/eventloop_8h.html#adefb8b6d8b677ba989e47cbf8a05806
 documentation for purple_timeout_add] you'll see that it will keep
 repeating the timeout on the same interval until the callback function
 returns `FALSE`, so the behavior is actually correct according to the API
 documentation.

 Unfortunately the (wildly out of date) Perl HOWTO has incorrect
 information about the behavior of the `Purple::timeout_add()` function.
 I'll keep this ticket open as a reminder to fix it.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/12440#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list