diff --git a/src/com/limelight/utils/SpinnerDialog.java b/src/com/limelight/utils/SpinnerDialog.java index 29a35bb2..3f9bb283 100644 --- a/src/com/limelight/utils/SpinnerDialog.java +++ b/src/com/limelight/utils/SpinnerDialog.java @@ -62,13 +62,14 @@ public class SpinnerDialog implements Runnable,OnCancelListener { @Override public void run() { + + // If we're dying, don't bother doing anything + if (activity.isFinishing()) { + return; + } if (progress == null) { - // If we're dying, don't bother creating a dialog - if (activity.isFinishing()) - return; - progress = new ProgressDialog(activity); progress.setTitle(title);