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:
Greg Wilkins 2009-08-02 23:59:43 +00:00
parent e70c253364
commit e433265fb2
1 changed files with 2 additions and 1 deletions

View File

@ -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();