Skip to content
Browse files

Revert "Release file handle on windows by killing tile server on proj…

…ect delete. Refs #1121."

This reverts commit 34e37de.
  • Loading branch information...
1 parent 0633548 commit 7e2c188f6bfe515b9b97de498700a684eafed3fb @springmeyer springmeyer committed Jan 18, 2012
Showing with 1 addition and 11 deletions.
  1. +1 −11 models/Project.server.bones
View
12 models/Project.server.bones
@@ -276,17 +276,7 @@ function loadProjectAll(model, callback) {
// Destroy a project. `rm -rf` equivalent for the project directory.
function destroyProject(model, callback) {
var modelPath = path.resolve(path.join(settings.files, 'project', model.id));
- // Workaround to access denied error on Windows when mapnik has
- // open file handles to a data file in a project that needs to
- // be deleted. Stopgap is to kill the tileserver, delete the project
- // and let the tileserver start back up on its own.
- if (process.platform === 'win32') {
- request.post({ url:'http://'+settings.tileUrl+'/restart' }, function(err) {
- rm(modelPath, callback);
- });
- } else {
- rm(modelPath, callback);
- }
+ rm(modelPath, callback);
}
// Save a project. Creates a subdirectory per project and splits out

0 comments on commit 7e2c188

Please sign in to comment.
Something went wrong with that request. Please try again.