Project

General

Profile

Actions

Task #2457

closed

Create Face in Logic rather than pass a Face reference in the constructor of Logic/Socket

Added by Yingdi Yu about 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Start date:
01/31/2015
Due date:
% Done:

0%

Estimated time:

Description

Passing a Face reference into logic is a bad design. When Logic is destroyed, some callbacks such as those passed through expressInterest should be removed.
Make Face as a part of Logic seems to be a better design, so that it is always guaranteed that all callbacks will be destroyed first.

Actions #1

Updated by Yingdi Yu about 9 years ago

  • Status changed from New to Rejected

It turns out a more decent solution is to clean up everything in destructor.

Actions

Also available in: Atom PDF