Skip to content

Commit

Permalink
Issue #434: Do the ping checking not when running under PSGI
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Sep 14, 2020
1 parent 07be08a commit f59d65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/System/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ sub Connect {
my $Self = shift;

# check database handle by doing a Ping every once in a while
if ( $Self->{dbh} ) {
if ( !$DBIxConnectorIsUsed && $Self->{dbh} ) {

my $PingTimeout = 10; # Only ping every 10 seconds (see bug#12383).
my $CurrentTime = time(); ## no critic
Expand Down

0 comments on commit f59d65e

Please sign in to comment.