Changeset 8d16e58 for perl/lib/BarnOwl/Timer.pm
- Timestamp:
- May 17, 2010, 9:44:01 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- bacf674
- Parents:
- d544237
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/16/10 11:51:25)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/17/10 21:44:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl/Timer.pm
ree183be r8d16e58 21 21 } 22 22 23 sub stop { 24 my $self = shift; 25 if(defined($self->{timer})) { 26 BarnOwl::Internal::remove_timer($self->{timer}); 27 undef $self->{timer}; 28 } 29 } 30 23 31 sub do_callback { 24 32 my $self = shift; … … 28 36 sub DESTROY { 29 37 my $self = shift; 30 if(defined($self->{timer})) { 31 BarnOwl::Internal::remove_timer($self->{timer}); 32 } 38 $self->stop; 33 39 } 34 40
Note: See TracChangeset
for help on using the changeset viewer.