- Added constructor which takes in an instance of `Manager` and an instance of `Socket`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-26 18:26:07 +02:00
parent 80d870e41a
commit 0d740d6231

View File

@ -24,7 +24,14 @@ public class Watcher : Thread
*/ */
private Socket socket; private Socket socket;
// TODO: make package-level in a way such
// ... that only Manager can access this constructor
// TODO: Add constructor doc
this(Manager manager, Socket socket)
{
this.manager = manager;
this.socket = socket;
}
private void watch() private void watch()