Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Possible asynchronous bug in NetworkOperationsHandlerImpl . #23

Description

@gmpassos

operations should be populated before schedule.

This line

operations[id] = op

should be placed before:

ioScheduler.schedule

The only thing that avoids an asynchronous bug is the delay of the operation execution,
what is not a correct pattern for synchronized data.

It's possible to have the operation executed before the operations[id] = op write.

synchronized(operations) { operations[id] = op }

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions