Return to the app page if the connection fails when starting up

This commit is contained in:
Cameron Gutman 2016-02-18 01:12:55 -05:00
parent 38d7b5d6c3
commit cce9cc5fb5

View File

@ -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;
}