add rewoke token then Access token has expired #2
@@ -1588,6 +1588,7 @@ sub _PerformHttpRequestOrInternalTimerFAIL {
 | 
				
			|||||||
                $def                      = $hash->{helper}->{repeat}->{def};
 | 
					                $def                      = $hash->{helper}->{repeat}->{def};
 | 
				
			||||||
                $value                    = $hash->{helper}->{repeat}->{value};
 | 
					                $value                    = $hash->{helper}->{repeat}->{value};
 | 
				
			||||||
                $hash->{helper}->{repeat} = undef;
 | 
					                $hash->{helper}->{repeat} = undef;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                _PerformHttpRequest( $hash, $def, $value );
 | 
					                _PerformHttpRequest( $hash, $def, $value );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
@@ -1615,6 +1616,18 @@ sub _PerformHttpRequestOrInternalTimerFAIL {
 | 
				
			|||||||
                \&FHEM::Devices::Matrix::Client::Login, $hash );
 | 
					                \&FHEM::Devices::Matrix::Client::Login, $hash );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    elsif ( $hash->{helper}->{softfail} < 3 ) {
 | 
				
			||||||
 | 
					        if ( $nextRequest eq 'login' ) {
 | 
				
			||||||
 | 
					            _PerformHttpRequest( $hash, $nextRequest, '' );
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        elsif ( $nextRequest eq 'sync' && $hash->{helper}->{repeat} ) {
 | 
				
			||||||
 | 
					            $def                      = $hash->{helper}->{repeat}->{def};
 | 
				
			||||||
 | 
					            $value                    = $hash->{helper}->{repeat}->{value};
 | 
				
			||||||
 | 
					            $hash->{helper}->{repeat} = undef;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            _PerformHttpRequest( $hash, $def, $value );
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user