fix typo main:main

This commit is contained in:
Marko Oldenburg 2018-11-16 21:46:57 +01:00
parent 971d4757f6
commit 0863ff4c8d

View File

@ -551,7 +551,7 @@ sub Connect($) {
$hash->{DeviceName} .= ":$port";
}
main::main::DevIo_CloseDev($hash) if main::DevIo_IsOpen($hash);
main::DevIo_CloseDev($hash) if main::DevIo_IsOpen($hash);
delete $hash->{DevIoJustClosed} if ( $hash->{DevIoJustClosed} );
return OpenIfRequiredAndWritePending( $hash, $isNewConnection );