Runtask may be accessing 'remote' on a different thread after remote has been closed by score (exit).
Just a thought.

On Thu, 12 Mar 2015 06:05:03 GMT, zhmt wrote:

It seems that the forward method caused the error:

static void forward(TCPConnection client,TCPConnection remote)
{
	auto wtask = runTask({
			remote.write(client);
		});
	client.write(remote);
	// wait for the tasks to finish
	wtask.join();
}