mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
DevIo: delete unused code
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5468 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3e8c0d2593
commit
b183f15db8
@ -138,7 +138,6 @@ DevIo_Expect($$$)
|
||||
# The next two lines are required to avoid a deadlock when the remote end closes the connection
|
||||
# upon DevIo_OpenDev, as e.g. netcat -l <port> does.
|
||||
DevIo_CloseDev($hash);
|
||||
sleep(5) if($hash->{USBDEV});
|
||||
DevIo_OpenDev($hash, 0, undef); # where to get the initfn from?
|
||||
# write something again
|
||||
return undef unless defined(DevIo_SimpleWrite($hash, $msg, 0));
|
||||
@ -389,10 +388,6 @@ DevIo_Disconnected($)
|
||||
$readyfnlist{"$name.$dev"} = $hash; # Start polling
|
||||
$hash->{STATE} = "disconnected";
|
||||
|
||||
# Without the following sleep the open of the device causes a SIGSEGV,
|
||||
# and following opens block infinitely. Only a reboot helps.
|
||||
sleep(5) if($hash->{USBDEV});
|
||||
|
||||
DoTrigger($name, "DISCONNECTED");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user