Skip to content

Commit

Permalink
Fix: StreamCast was not working correctly (#16983)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok authored Mar 24, 2020
1 parent dddcb2a commit 9681fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/stream/streamBroadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Logger, LoggerManager } from '../../app/logger';
import { hasPermission } from '../../app/authorization';
import { settings } from '../../app/settings';
import { isDocker, getURL } from '../../app/utils';
import { Users } from '../../app/models/server/models/Users';
import { Users } from '../../app/models/server';

process.env.PORT = String(process.env.PORT).trim();
process.env.INSTANCE_IP = String(process.env.INSTANCE_IP).trim();
Expand Down Expand Up @@ -218,7 +218,7 @@ function startStreamCastBroadcast(value) {
const scope = {};
return instance.emitWithScope(eventName, scope, args);
}
return instance.emitWithoutBroadcast(eventName, args);
return instance._emit(eventName, args);
});

return connection.subscribe('stream');
Expand Down

0 comments on commit 9681fd3

Please sign in to comment.