[mirotalksfu] - handle better worker died...
هذا الالتزام موجود في:
@@ -715,7 +715,7 @@ module.exports = class Room {
|
||||
log.debug('Transport closed', {
|
||||
peer_name: peer_name,
|
||||
transport_id: transport.id,
|
||||
transport_closed: transport.closed
|
||||
transport_closed: transport.closed,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ dev dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.71
|
||||
* @version 1.8.72
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1573,8 +1573,19 @@ function startServer() {
|
||||
}
|
||||
|
||||
worker.on('died', () => {
|
||||
log.error('Mediasoup worker died, exiting in 2 seconds... [pid:%d]', worker.pid);
|
||||
setTimeout(() => process.exit(1), 2000);
|
||||
log.error('Mediasoup worker died', worker.pid);
|
||||
|
||||
// Remove the dead worker from the workers array
|
||||
const idx = workers.indexOf(worker);
|
||||
if (idx !== -1) workers.splice(idx, 1);
|
||||
|
||||
// If no workers left, exit the process
|
||||
if (workers.length === 0) {
|
||||
log.error('All mediasoup workers have died, exiting in 2 seconds...');
|
||||
setTimeout(() => process.exit(1), 2000);
|
||||
} else {
|
||||
log.warn(`Mediasoup worker died (pid: ${worker.pid}), but ${workers.length} worker(s) remain.`);
|
||||
}
|
||||
});
|
||||
|
||||
workers.push(worker);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.8.71",
|
||||
"version": "1.8.72",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -64,7 +64,7 @@ let BRAND = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: '<strong>WebRTC SFU v1.8.71</strong>',
|
||||
title: '<strong>WebRTC SFU v1.8.72</strong>',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.71
|
||||
* @version 1.8.72
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -5479,7 +5479,7 @@ function showAbout() {
|
||||
position: 'center',
|
||||
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.71',
|
||||
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.72',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.8.71
|
||||
* @version 1.8.72
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم