Skip to content

Calling Bus::end() before Bus::begin(...) ends in a infinite loop #110

Description

@Darthyson

Bus::end() calls Bus::canPause(false), which will always return false because Bus::state is Bus::INIT at this point, as we haven´t called Bus::begin(...) yet.

I suggest changing

if (state == IDLE)
return true;

to
if ((state == IDLE) || (state == INIT))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions