From 03aa103cffb0521596bb5bc0b36b18ea9f9e5425 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 25 Jan 2008 20:01:56 +0000 Subject: [PATCH] Drive by formatting tweaks. --- src/java/com/threerings/getdown/data/Application.java | 8 ++++---- src/java/com/threerings/getdown/launcher/Getdown.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java index 3ed4983..9d49399 100644 --- a/src/java/com/threerings/getdown/data/Application.java +++ b/src/java/com/threerings/getdown/data/Application.java @@ -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; diff --git a/src/java/com/threerings/getdown/launcher/Getdown.java b/src/java/com/threerings/getdown/launcher/Getdown.java index ac969e8..05eff9e 100644 --- a/src/java/com/threerings/getdown/launcher/Getdown.java +++ b/src/java/com/threerings/getdown/launcher/Getdown.java @@ -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();