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