From 32bfc704d767d3cf5a69a530779960affafcaf18 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 12 Aug 2003 01:01:09 +0000 Subject: [PATCH] Not to freak out while we're not connected. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2767 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/client/Client.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/client/Client.java b/src/java/com/threerings/presents/client/Client.java index a2e33cc65..3a067adb8 100644 --- a/src/java/com/threerings/presents/client/Client.java +++ b/src/java/com/threerings/presents/client/Client.java @@ -1,5 +1,5 @@ // -// $Id: Client.java,v 1.40 2003/08/08 20:20:39 mdb Exp $ +// $Id: Client.java,v 1.41 2003/08/12 01:01:09 mdb Exp $ package com.threerings.presents.client; @@ -382,8 +382,12 @@ public class Client */ protected void tick () { - long now = System.currentTimeMillis(); + // if we're not connected, skip it + if (_comm == null) { + return; + } + long now = System.currentTimeMillis(); if (_dcalc != null) { // if we're syncing the clock, send another ping PingRequest req = new PingRequest();