~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Util/ScopedTimer.pm

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  # best practices: prevent potential calls to eval and to system routines
43
43
  # in code of a DESTROY method from clobbering global variables $@ and $! 
44
44
  local($@,$!);  # keep outer error handling unaffected by DESTROY
45
 
  $self->{main}->timer_end($self->{timer});
 
45
  $self->{main} && $self->{timer} && $self->{main}->timer_end($self->{timer});
46
46
}
47
47
 
48
48
1;