bugfix apptime and amad

This commit is contained in:
Marko Oldenburg 2016-10-08 21:54:24 +02:00
parent 9d2127af34
commit 7883857eed

View File

@ -140,7 +140,7 @@ sub AMAD_Undef($$) {
my ( $hash, $arg ) = @_;
if( $hash->{BRIDGE} or $hash->{TEMPORARY} == 1 ) {
delete $modules{AMAD}{defptr}{BRIDGE} if( defined($modules{AMAD}{defptr}{BRIDGE}) );
delete $modules{AMAD}{defptr}{BRIDGE} if( defined($modules{AMAD}{defptr}{BRIDGE}) and $hash->{BRIDGE} );
TcpServer_Close( $hash );
}