Skip to content

FATAL EXCEPTION: NsdManager #1

@ValentinKDev

Description

@ValentinKDev

AndroidRuntime E FATAL EXCEPTION: NsdManager
Process: com.example.localnetworkingandroidapp, PID: 27998
java.lang.IllegalArgumentException: listener already in use

I can not easily quit and re enter the chat with the client device, to me it looks like discoveryListener call several times the onServiceFound() function and for every call use the same resolveListener in nsdMangaer.resolveService() parameters.

I fixed it by calling a new resolveListener on each onServiceFound() call

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