Example #1
0
 // used to break all known links to this mbox
 public void BreakLinks(IOtpErlangObject reason)
 {
     foreach (var link in links.ClearLinks())
     {
         Exit(1, link.Remote, reason);
     }
 }
 /*
  * When the connection fails - send exit to all local pids with links
  * through this connection
  */
 private void BreakLinks()
 {
     Link[] clearLinks;
     lock (lockObj)
         clearLinks = links.ClearLinks();
     foreach (var link in clearLinks)
     {
         // send exit "from" remote pids to local ones
         self.Deliver(new OtpMsg(OtpMsg.exitTag, link.Remote, link.Local, new OtpErlangAtom("noconnection")));
     }
 }