Changeset dfbb131 for perl/lib/BarnOwl


Ignore:
Timestamp:
Sep 29, 2008, 6:47:36 PM (16 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
41bbb8a
Parents:
0eb4036
Message:
reload-module should call reload().

This lets us run the (re)loaded module's startup hook.  A side-effect
is that we rerun all module startup hooks and BarnOwl::startup(), but
those should be idempotent.

Now using :reload-module to pull in a new module should work properly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/ModuleLoader.pm

    r5f8d8a1 rdfbb131  
    7777    if(defined $parfile) {
    7878        PAR::reload_libs($parfile);
     79        $class->reload();
    7980    } elsif(!defined eval "use BarnOwl::Module::$module") {
    8081        BarnOwl::error("Unable to load module $module: \n$@\n") if $@;
Note: See TracChangeset for help on using the changeset viewer.