Check drive to hotplug for already being redirected
authorakallabeth <akallabeth@posteo.net>
Fri, 15 Jan 2021 09:41:12 +0000 (10:41 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
commit2ce5f6f17c7e0bc4110b1da5ef5b3e93b843c98e
tree56f9c2b84c3c5575fc5c04fe1ef592b355b8636e
parent605e89a38d8d2afc54c206b249aa9db6863031f1
Check drive to hotplug for already being redirected

some hotplug implementations report the same drive multiple times.
to avoid redirecting the same drive multiple times check if it is
already in the list before adding.

(cherry picked from commit 9e8d3fbbf5ad7bb75799a8aca9fafa9c2dcf7fd9)
channels/rdpdr/client/rdpdr_main.c