lib/nfs/Connection: fix reconnect after mount failure
When mounting had not yet finished, SocketMonitor::IsDefined() was always false, due to the workaround at the beginning of the function that calls SocketMonitor::Steal(). This commit drops the IsDefined() check because it was never necessary and breaks reconnect.
This commit is contained in:
parent
d653f35bb7
commit
02563a35f0
1
NEWS
1
NEWS
|
@ -2,6 +2,7 @@ ver 0.19.7 (not yet released)
|
|||
* input
|
||||
- nfs: fix crash while canceling a failing file open operation
|
||||
- nfs: fix memory leak on connection failure
|
||||
- nfs: fix reconnect after mount failure
|
||||
* playlist
|
||||
- don't skip non-existent songs in "listplaylist"
|
||||
* fix memory allocator bug on Windows
|
||||
|
|
|
@ -483,7 +483,7 @@ NfsConnection::OnSocketReady(unsigned flags)
|
|||
|
||||
DestroyContext();
|
||||
closed = true;
|
||||
} else if (SocketMonitor::IsDefined() && nfs_get_fd(context) < 0) {
|
||||
} else if (nfs_get_fd(context) < 0) {
|
||||
/* this happens when rpc_reconnect_requeue() is called
|
||||
after the connection broke, but autoreconnect was
|
||||
disabled - nfs_service() returns 0 */
|
||||
|
|
Loading…
Reference in New Issue