aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 333f521..7df1f12 100644
--- a/server.c
+++ b/server.c
@@ -353,7 +353,6 @@ void *send_udp_packet_routine(void *arg) {
perror("send_all_udp");
printf("We only sent %d bytes because of the error!\n", bytes_read);
}
-
did_work = 1;
@@ -808,6 +807,7 @@ void seek_stations(int station_num) {
station_t *station_info = &station_data[station_num];
memset(&station_info->fileBuffer, 0, MAX_STREAM_RATE);
int bytes_read = read(station_info->streamFd, &station_info->fileBuffer, MAX_STREAM_RATE);
+ lseek(station_info->streamFd, -16, SEEK_SET);
// printf("station info - bytes read: %d, station_fd: %d, filePath: %s, buffersize: %d\n", bytes_read, station_info->streamFd, station_info->filePath, station_info->fileBufferSize);
// time to restart the file