From 57aefb8e1c8d86dc404ec627ce31da49c5642ef5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 13 Dec 2007 01:42:10 +0000 Subject: [PATCH] Don't freak out on mouse clicks if we're not connected. (I check every time so that this still works after you're disconnected.) git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@526 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/EZGameControl.as | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/as/com/threerings/ezgame/EZGameControl.as b/src/as/com/threerings/ezgame/EZGameControl.as index bddaad23..a1ac3591 100644 --- a/src/as/com/threerings/ezgame/EZGameControl.as +++ b/src/as/com/threerings/ezgame/EZGameControl.as @@ -814,6 +814,9 @@ public class EZGameControl extends BaseControl */ protected function handleRootClick (evt :MouseEvent) :void { + if (!isConnected()) { + return; + } try { if (evt.target.stage == null || evt.target.stage.focus != null) { return;