285006 fix AbstractConnector NPE during shutdown
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@618 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
e70c253364
commit
e433265fb2
|
@ -724,13 +724,14 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
|
|||
public void run()
|
||||
{
|
||||
Thread current = Thread.currentThread();
|
||||
String name;
|
||||
synchronized(AbstractConnector.this)
|
||||
{
|
||||
if (_acceptorThread==null)
|
||||
return;
|
||||
|
||||
_acceptorThread[_acceptor]=current;
|
||||
String name =_acceptorThread[_acceptor].getName();
|
||||
name =_acceptorThread[_acceptor].getName();
|
||||
current.setName(name+" - Acceptor"+_acceptor+" "+AbstractConnector.this);
|
||||
}
|
||||
int old_priority=current.getPriority();
|
||||
|
|
Loading…
Reference in New Issue