Skip to content

Commit

Permalink
fix: Unnecessary waiting on PublicSync (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos authored Jul 1, 2020
1 parent 6bb44ff commit ef9718a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/tech/relaycorp/courier/domain/PublicSync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ class PublicSync
state.send(State.DeliveringCargo)
cargoDelivery.deliver()

delay(WAIT_PERIOD)
state.send(State.Waiting)
delay(WAIT_PERIOD)

state.send(State.CollectingCargo)
cargoCollection.collect()

delay(WAIT_PERIOD)
state.send(State.Finished)
}

Expand Down

0 comments on commit ef9718a

Please sign in to comment.