Skip to content

Trying to change to an invalid channel number throws an uncaught exception #6

Description

@dalhundal
sky-plus-hd/lib/sky-plus-hd.js:536
    logger.info("Changing channel to: ("+c.channel+") "+c.name);

TypeError: Cannot read property 'channel' of undefined
    at module.exports.changeChannel (sky-plus-hd/lib/sky-plus-hd.js:536:43)
    at Socket.<anonymous> (sky-plus-hd/examples/web/web.js:16:11)
    at Socket.EventEmitter.emit [as $emit] (events.js:96:17)
    at SocketNamespace.handlePacket (sky-plus-hd/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (sky-plus-hd/node_modules/socket.io/lib/manager.js:488:38)
    at WebSocket.Transport.onMessage (sky-plus-hd/node_modules/socket.io/lib/transport.js:387:20)
    at Parser.<anonymous> (sky-plus-hd/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
    at Parser.EventEmitter.emit (events.js:96:17)
    at opcodeHandlers.1.finish (sky-plus-hd/node_modules/socket.io/lib/transports/websocket/hybi-16.js:288:16)
    at Parser.opcodeHandlers.1.expectData [as expectHandler] (sky-plus-hd/node_modules/socket.io/lib/transports/websocket/hybi-16.js:299:15)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions