Optimize device disconnect callback processing

There's no need to iterate the callback list twice upon disconnect.
1 file changed