fix: session management backend bug fixes

This commit is contained in:
Ante Brähler
2024-12-27 17:38:05 +01:00
parent 672890974d
commit 4854f767a5
10 changed files with 89 additions and 59 deletions

View File

@@ -35,10 +35,10 @@ proxyRouter.get('/key', proxyController.key);
app.use('/proxy', proxyRouter);
const PORT = 5000;
const server = app.listen(PORT, () => {
const server = app.listen(PORT, async () => {
console.log(`Server listening on Port ${PORT}`);
if (ChannelService.getCurrentChannel().restream()) {
streamController.start(ChannelService.getCurrentChannel());
await streamController.start(ChannelService.getCurrentChannel());
}
});