Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25272
Modified Files:
Manage.pm
Log Message:
don't recreate the context with every call -- first check if it already exists
Index: Manage.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Manage.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** Manage.pm 26 Jan 2005 02:35:55 -0000 1.43
--- Manage.pm 2 Feb 2005 13:15:04 -0000 1.44
***************
*** 493,496 ****
--- 493,501 ----
sub _setup_context {
my ( $self, $params ) = @_;
+
+ # don't recreate the context every time
+ eval { OpenInteract2::Context->instance };
+ return unless ( $@ );
+
my $log = get_logger();
if ( $self->param( 'debug' ) ) {
|