public void unlink(OtpErlangPid to)
{
links.removeLink(self, to);
try
{
String node = to.Node;
if (node.Equals(home.Node))
{
home.deliver(new OtpMsg(OtpMsg.unlinkTag, self, to));
}
else
{
OtpCookedConnection conn = home.getConnection(node);
if (conn != null)
{
conn.unlink(self, to);
}
}
}
catch (Exception)
{
}
}