Skip to content

Error while trying to connect and send message to switcher #9

@adamtow

Description

@adamtow

I'm having a problem trying to get the controller connected properly so I can send messages:

if let controller = try? Controller(ipAddress: "10.0.1.50") {
	print("Before sending message")
	controller.send(message: ChangeTransitionPosition(to: 5000))
}

This error occurs right after calling print in the EventLoopGroup extension of NIO.

NIO-ELT-1-#0 (10): Fatal error: BUG DETECTED: syncShutdownGracefully() must not be called when on an EventLoop.
Calling syncShutdownGracefully() on any EventLoop can lead to deadlocks.
Current eventLoop: SelectableEventLoop { selector = Selector { descriptor = 3 }, thread = NIOThread(name = NIO-ELT-1-#0) }

Do you have a sample app that uses the Swift-Atem package to send one or two commands to a switcher?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions