Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeshaInc committed Nov 29, 2017
1 parent fab065e commit 45f5cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

### TrackData
[0x02]
[[4 bytes: playback time]
[dfpwm data: packet length - 4 bytes]]
[playback time: 4 bytes]
[[length: 4 bytes] [dfpwm data: length]]

## `.rip` format specification
[0x72 0x69 0x70]
Expand Down
2 changes: 1 addition & 1 deletion src/rip-stream-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static int client_read(struct client *client, slab_t *clients, int efd) {
}
}

if (count == 0 || buf != 'a') closing = 1;
if (count == 0 || buf != '\0') closing = 1;

if (closing) {
client_close(client, clients, efd);
Expand Down

0 comments on commit 45f5cee

Please sign in to comment.