proper shutdown
[strongswan.git] / src / dumm / cowfs.c
index f3b169b..6e0fa92 100644 (file)
@@ -779,8 +779,8 @@ static void set_scenario(private_cowfs_t *this, char *path)
 static void destroy(private_cowfs_t *this)
 {
        fuse_exit(this->fuse);
-       pthread_join(this->thread, NULL);
        fuse_unmount(this->mount, this->chan);
+       pthread_join(this->thread, NULL);
        fuse_destroy(this->fuse);
        free(this->mount);
        free(this->master);