Avoid trying to reopen devices if they have the wrong mode, instead check if they are open.
Avoid trying to reopen devices if they have the wrong mode, instead check if they are open.

nitroshare/qhttpengine