File Coverage

blib/lib/PLS/Server/Request/Exit.pm
Criterion Covered Total %
statement 16 16 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 23 24 95.8


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   53 use warnings;
  9         18  
  9         224  
4 9     9   36  
  9         10  
  9         180  
5             use parent 'PLS::Server::Request';
6 9     9   36  
  9         17  
  9         38  
7             use PLS::Server::State;
8 9     9   412  
  9         26  
  9         689  
9             =head1 NAME
10              
11             PLS::Server::Request::Exit
12              
13             =head1 DESCRIPTION
14              
15             This is a notification message from the client to the server requesting
16             that the server exits.
17              
18             =cut
19              
20             {
21             my ($self, $server) = @_;
22              
23 2     2 0 16 my $exit_code = $PLS::Server::State::SHUTDOWN ? 0 : 1;
24             $server->stop($exit_code);
25 2 100       14  
26 2         30 return;
27             } ## end sub service
28 2         10  
29             1;