Fix Connectiojn Limit Bug

This commit is contained in:
Exil Productions
2025-12-26 23:37:04 +01:00
parent ea52870ca5
commit fad6425f44
5 changed files with 21 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ typedef bool (*RtmpAuthCallback)(const char *app, const char *stream_key,
// Create and destroy
RtmpServerHandle rtmp_server_create(int port);
void rtmp_server_destroy(RtmpServerHandle handle);
bool rtmp_server_start(RtmpServerHandle handle);
bool rtmp_server_start(RtmpServerHandle handle, bool* isRunning);
void rtmp_server_stop(RtmpServerHandle handle);
bool rtmp_server_is_running(RtmpServerHandle handle);

View File

@@ -340,7 +340,7 @@ public:
RTMPServer(int port = 1935);
~RTMPServer();
bool start();
bool start(bool& isRunning);
void stop();
bool isRunning() const { return running; }