diff src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 959:7b94f5b33c64

remove onClose()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 13 Oct 2016 18:53:26 -0600
parents 1094975d013b
children 3cd4c706a61f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Thu Oct 13 18:48:20 2016 -0600
+++ b/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Thu Oct 13 18:53:26 2016 -0600
@@ -78,9 +78,6 @@
 	/** True if a thread has is blocked in {@link #blockWritable(long)} */
 	private boolean _writeBlocked;
 
-	/** true if {@link SelectSet#destroyEndPoint(SelectChannelEndPoint)} has not been called */
-	private boolean _open;
-	
 	private boolean _ishut;
 
 	public SelectChannelEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey key, int maxIdleTime)
@@ -91,7 +88,6 @@
 		_manager = selectSet.getManager();
 		_selectSet = selectSet;
 		_state = STATE_UNDISPATCHED;
-		_open = true;
 		_key = key;
 	}
 
@@ -408,11 +404,6 @@
 								_key.cancel();
 							}
 
-							if (_open)
-							{
-								_selectSet.destroyEndPoint(this);
-							}
-							_open = false;
 							_key = null;
 						}
 					}
@@ -435,11 +426,6 @@
 			if (_key!=null && _key.isValid())
 				_key.cancel();
 
-			if (_open)
-			{
-				_open = false;
-				_selectSet.destroyEndPoint(this);
-			}
 			_key = null;
 		}
 	}