$logger->debug( "Number of matched responses: " . @list, DEBUG );
$self->queue_wait(0); # check for statuses
- if (!wantarray) {
- $self->session_locale( $list[0]->sender_locale );
- return $list[0];
- } else {
- $self->session_locale( $list[-1]->sender_locale );
- }
-
+ return $list[0] if (!wantarray);
return @list;
}
my $session = shift;
my $mtype = $self->type;
+ my $locale = $self->sender_locale;
my $api_level = $self->api_level || 1;;
my $tT = $self->threadTrace;
$session->last_message_type($mtype);
$session->last_message_api_level($api_level);
$session->last_threadTrace($tT);
+ $session->session_locale($locale);
$log->debug(" Received api_level => [$api_level], MType => [$mtype], ".
"from [".$session->remote_id."], threadTrace[".$self->threadTrace."]");