Fix SIP timeouts due to invalid sessions
authorDan Scott <dscott@laurentian.ca>
Thu, 1 Dec 2016 22:24:01 +0000 (17:24 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 19 Dec 2016 23:17:52 +0000 (18:17 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm

index 81307f4..998ea85 100644 (file)
@@ -295,12 +295,14 @@ sub find_patron {
     my $key  =  (@_ > 1) ? shift : 'barcode';  # if we have multiple args, the first is the key index (default barcode)
     my $patron_id = shift;
 
+    $self->verify_session;
     return OpenILS::SIP::Patron->new($key => $patron_id, authtoken => $self->{authtoken}, @_);
 }
 
 
 sub find_item {
     my $self = shift;
+    $self->verify_session;
     return OpenILS::SIP::Item->new(@_);
 }