comparison src/goodjava/webserver/handlers/DomainHandler.java @ 1405:546edc2df02c

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 18 Sep 2019 05:10:08 -0600
parents 27efb1fcbcb5
children 42c07ecb0ddc
comparison
equal deleted inserted replaced
1404:9882c053d26f 1405:546edc2df02c
65 return handler; 65 return handler;
66 } 66 }
67 } 67 }
68 68
69 public void removeHandler(String domain) { 69 public void removeHandler(String domain) {
70 logger.info("removeHandler "+domain); 70 //logger.info("removeHandler "+domain);
71 domain = domain.toLowerCase(); 71 domain = domain.toLowerCase();
72 synchronized(map) { 72 synchronized(map) {
73 Reference<Handler> ref = map.remove(domain); 73 Reference<Handler> ref = map.remove(domain);
74 Handler handler = ref==null ? null : ref.get(); 74 Handler handler = ref==null ? null : ref.get();
75 if( handler != null ) { 75 if( handler != null ) {