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
This commit is contained in:
Michael Bayne
2003-05-07 05:31:09 +00:00
parent e174e71b8a
commit f1bcf698db
@@ -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.