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
This commit is contained in:
Ray Greenwell
2007-12-13 01:42:10 +00:00
parent 7f1ee2e1f4
commit 57aefb8e1c
@@ -814,6 +814,9 @@ public class EZGameControl extends BaseControl
*/ */
protected function handleRootClick (evt :MouseEvent) :void protected function handleRootClick (evt :MouseEvent) :void
{ {
if (!isConnected()) {
return;
}
try { try {
if (evt.target.stage == null || evt.target.stage.focus != null) { if (evt.target.stage == null || evt.target.stage.focus != null) {
return; return;