-/* $Id: httpd.js,v 1.56 2005/07/13 22:05:25 mmondor Exp $ */
+/* $Id: httpd.js,v 1.57 2005/07/13 22:39:09 mmondor Exp $ */
/*
* Copyright (c) 2005, Matthew Mondor
* Server identification
*/
SERVER_VERSION = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID = '$Id: httpd.js,v 1.56 2005/07/13 22:05:25 mmondor Exp $';
+SERVER_CVSID = '$Id: httpd.js,v 1.57 2005/07/13 22:39:09 mmondor Exp $';
} catch (x) {
if (this.error != FD.EAGAIN) {
close = true;
- this.transfer_dst.fdatasync();
- this.transfer_dst.close();
+ try {
+ this.transfer_dst.fdatasync();
+ this.transfer_dst.close();
+ } catch (x) {}
}
}
} else {
this.transfer_state = STATE_TRANSFER_WRITE;
} catch (x) {
close = true;
- this.transfer_src.close();
+ try {
+ this.transfer_src.close();
+ } catch (x) {}
}
}
}
close = true;
}
}
- if (close)
- this.transfer_src.close();
+ if (close) {
+ try {
+ this.transfer_src.close();
+ } catch (x) {}
+ }
} else {
/* Writing to file */
if (this.transfer_eof)
}
}
if (close) {
- this.transfer_dst.fdatasync();
- this.transfer_dst.close();
+ try {
+ this.transfer_dst.fdatasync();
+ this.transfer_dst.close();
+ } catch (x) {}
}
}
}
}
if (close) {
- e[i].close();
+ try {
+ e[i].close();
+ } catch (x) {}
counters_dec(e[i]);
delete set[e[i].index];
delete e[i];