libnfs.c: Fix autoreconnect
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sat, 19 Jul 2014 10:32:40 +0000 (11:32 +0100)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Sat, 19 Jul 2014 10:35:23 +0000 (11:35 +0100)
commit28ee9de2e458640310b7a41ac6c12d7d23ff2c6a
tree1b4570ab3970255855c74dbc1fc5ad510e9dc444
parentea283cd792ea5b967c8f9dc5842fca6c2281cdd6
libnfs.c: Fix autoreconnect

Since rpc_connect_async sets autoreconnect to 0, turn autoreconnect on
after the connection has completed, not before.

This fixes #76.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
lib/libnfs.c