From f1bcf698dbb99ce937f2163e9b2874306a89671a Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 7 May 2003 05:31:09 +0000 Subject: [PATCH] Rather than allow an Error to be thrown, we just log a warning and go on about our business. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2549 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/resource/Handler.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/resource/Handler.java b/src/java/com/threerings/resource/Handler.java index 1b61515c7..a7fcfd9f9 100644 --- a/src/java/com/threerings/resource/Handler.java +++ b/src/java/com/threerings/resource/Handler.java @@ -1,5 +1,5 @@ // -// $Id: Handler.java,v 1.3 2003/05/06 18:48:18 ray Exp $ +// $Id: Handler.java,v 1.4 2003/05/07 05:31:09 mdb Exp $ package com.threerings.resource; @@ -25,6 +25,12 @@ public class Handler extends URLStreamHandler */ public static void registerHandler (ResourceManager rmgr) { + // if we already have a resource manager registered; don't + // register another one + if (_rmgr != null) { + Log.warning("Refusing duplicate resource handler registration."); + return; + } _rmgr = rmgr; // There are two ways to do this.