> don't call `unregister` here. When shutdown hook runs, it will lead to 
> IllegalStateException if we try to remove the hook.
> 
> ```java
>     static synchronized void add(Thread hook) {
>         if(hooks == null)
>             throw new IllegalStateException("Shutdown in progress");
> 
>         if (hook.isAlive())
>             throw new IllegalArgumentException("Hook already running");
> 
>         if (hooks.containsKey(hook))
>             throw new IllegalArgumentException("Hook previously registered");
> 
>         hooks.put(hook, hook);
>     }
> ```

I remove it

[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/3280 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to