Drive by formatting tweaks.

This commit is contained in:
Michael Bayne
2008-01-25 20:01:56 +00:00
parent 497de6e850
commit 03aa103cff
2 changed files with 5 additions and 5 deletions
@@ -1038,14 +1038,14 @@ public class Application
try {
_lockChannel = new RandomAccessFile(getLocalPath("gettingdown.lock"), "rw").getChannel();
} catch (FileNotFoundException e) {
Log.warning("Unable to create lock file[message=" + e.getMessage() + "]");
Log.warning("Unable to create lock file [message=" + e.getMessage() + "]");
Log.logStackTrace(e);
return false;
}
try {
_lock = _lockChannel.tryLock();
} catch (IOException e) {
Log.warning("Unable to create lock[message=" + e.getMessage() + "]");
Log.warning("Unable to create lock [message=" + e.getMessage() + "]");
Log.logStackTrace(e);
}
return _lock != null;
@@ -1060,13 +1060,13 @@ public class Application
try {
_lock.release();
} catch (IOException e) {
Log.warning("Unable to release lock[message=" + e.getMessage() + "]");
Log.warning("Unable to release lock [message=" + e.getMessage() + "]");
Log.logStackTrace(e);
}
try {
_lockChannel.close();
} catch (IOException e) {
Log.warning("Unable to close lock channel[message=" + e.getMessage() + "]");
Log.warning("Unable to close lock channel [message=" + e.getMessage() + "]");
Log.logStackTrace(e);
}
_lockChannel = null;
@@ -651,7 +651,7 @@ public abstract class Getdown extends Thread
public boolean downloadProgress (int percent, long remaining) {
// check for another getdown running at 0 and every 10% after that
if (_lastCheck == -1 || percent >= _lastCheck + 10) {
if (_delay > 0){
if (_delay > 0) {
// Stop the presses if something else is holding the lock.
boolean locked = _app.lockForUpdates();
_app.releaseLock();