protected void EdgeHandler(object edge, EventArgs args)
{
Edge e = (Edge)edge;
try {
_connection_table.AddUnconnected(e);
e.Subscribe(this, e);
}
catch(TableClosedException) {
/*
* Close this edge immediately, before any packets
* have a chance to be received. We are shutting down,
* and it is best that we stop getting new packets
*/
e.Close();
}
}