Skip to content

Commit

Permalink
fix bug with reading unit statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Irioth committed Nov 18, 2016
1 parent 475abb9 commit d1662a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codewizards/runner/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ func (c *Client) readStatuses() []*Status {
}

func (c *Client) readStatus() *Status {
if !c.readBool() {
return nil
}
return &Status{
Id: c.readInt64(),
Type: StatusType(c.readByte()),
Expand Down

0 comments on commit d1662a9

Please sign in to comment.