Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Editor/NRepl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,19 @@ public static void StopServer ()
running = false;
}

private static TcpListener listener;

public static void StartServer ()
{
Debug.Log("nrepl: starting");

running = true;
new Thread(() => {
var listener = new TcpListener(IPAddress.Loopback, Port);
if (listener == null)
{
listener = new TcpListener(IPAddress.Loopback, Port);
}

try
{
// TODO make IPAddress.Loopback configurable to allow remote connections
Expand Down