just skip assert()'s on FS.syncfs() errors
authorTaylor Richards <taylor@icculus.org>
Mon, 26 Feb 2018 02:48:32 +0000 (21:48 -0500)
committerTaylor Richards <taylor@icculus.org>
Sat, 17 Mar 2018 15:31:15 +0000 (11:31 -0400)
src/cfile/cfile.cpp
src/playerman/managepilot.cpp

index bca6b7e..74d978f 100644 (file)
@@ -1568,7 +1568,6 @@ int cfile_init_paths()
                FS.syncfs(true, function(err) {
                        if (err && err.code !== 'EEXIST') {
                                console.log('FS.syncfs() load error: ' + err);
-                               assert(err);
                        } else {
                                Module.sync_in_progress = 0;
 
index 3c6fe01..0b93116 100644 (file)
@@ -1387,11 +1387,7 @@ void write_pilot_file(player *the_player)
 #ifdef __EMSCRIPTEN__
        else {
                // sync files to persistent storage
-               EM_ASM(
-                       FS.syncfs(function(err) {
-                               assert(!err);
-                       });
-               );
+               EM_ASM( FS.syncfs(function(err) {}); );
        }
 #endif
 }