From cce9cc5fb5dd3de502597c2a8b1629f5ffa816ca Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 18 Feb 2016 01:12:55 -0500 Subject: [PATCH] Return to the app page if the connection fails when starting up --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0b5982a..906a40c 100644 --- a/main.cpp +++ b/main.cpp @@ -100,7 +100,8 @@ void* MoonlightInstance::ConnectionThreadFunc(void* context) { NULL, 0, me->m_ServerMajorVersion); if (err != 0) { - pp::Var response("Starting connection failed"); + // Notify the JS code that the stream has ended + pp::Var response(MSG_STREAM_TERMINATED); me->PostMessage(response); return NULL; }