patch-async_run_parseJson #48

Merged
marko merged 20 commits from patch-async_run_parseJson into devel 2022-02-09 13:11:54 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 5d245d5a3d - Show all commits

View File

@ -899,9 +899,9 @@ sub PollChild {
if ( defined( $hash->{".fhem"}{subprocess} ) ) {
my $subprocess = $hash->{".fhem"}{subprocess};
my $response = $subprocess->readFromChild();
my @response = $subprocess->readFromChild();
if ( !defined($response) ) {
if ( !defined(@response) ) {
Log3( $name, 5,
qq{GardenaSmartBridge ($name) - still waiting ($subprocess->{lasterror}).}
);
@ -923,8 +923,8 @@ qq{GardenaSmartBridge ($name) - got result from asynchronous parsing}
CleanSubprocess($hash);
if ( ref($response) eq 'ARRAY' ) {
for my $json ( @{$response} ) {
if ( scalar(@response) > 0 ) {
for my $json (@response) {
#################
$decode_json = eval { decode_json($json) };
@ -968,7 +968,7 @@ sub ResponseSubprocessing {
( $json, $tail ) = ParseJSON($tail);
}
$subprocess->writeToParent( \@response );
$subprocess->writeToParent(@response);
return;
}

View File

@ -1,2 +1,2 @@
UPD 2022-02-01_10:58:50 49892 FHEM/73_GardenaSmartBridge.pm
UPD 2022-02-01_11:52:56 49880 FHEM/73_GardenaSmartBridge.pm
UPD 2022-01-31_19:35:42 56993 FHEM/74_GardenaSmartDevice.pm