disconnected-reply-no-locking-yet-20090128
[openafs.git] / src / afs / afs_pioctl.c
index 0ded19c..6ed5550 100644 (file)
@@ -4700,11 +4700,11 @@ DECL_PIOCTL(PDiscon)
                if (force) {
                    afs_DisconDiscardAll(*acred);
                }
+               afs_ClearAllStatdFlag();
                afs_is_disconnected = 0;
                afs_is_discon_rw = 0;
                printf("\nSync succeeded. You are back online.\n");
            }
-           afs_ClearAllStatdFlag();
 
            ReleaseWriteLock(&afs_discon_lock);
            break;