2.6.2, cache error handling

This commit is contained in:
hydrabolt
2015-08-19 21:35:10 +01:00
parent 5e511b9264
commit 14143f95b0
4 changed files with 18 additions and 11 deletions

View File

@@ -14,11 +14,7 @@ exports.TokenManager = function( folder, file ) {
var fd = fs.openSync( self.path, "wx" );
self.writeTokens();
} catch ( e ) {
if ( e.errno !== -4075 ) {
throw e;
} else {
self.readTokens();
}
self.readTokens();
}
}