K2Informatics.Erlnet.OtpMbox.unlink C# (CSharp) Method

unlink() public method

public unlink ( OtpErlangPid to ) : void
to OtpErlangPid
return void
        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)
            {
            }
        }