Closed wgv-jxiao closed 4 years ago
Changes look okay. Can you comment on how you discovered or why this change is needed? It'd be nice to have some description on what was happening that needed this. Just for the sake of documentation on this merge.
This is discovered when we work on video playback. Sometimes the file connection get cutoff when retrieving file information. I added retry to reconnect. However, it try to reuse the cached connection which the underline client is already disconnected. We need to dispose and remove the old connection from cache, So we can create new connection and client.
Thanks Jun!
When SMBConnection is not connected, we need to dispose it in order to create a new one.