From d655d370c0051df25b07611704c4fa20a54534ba Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 13:02:47 +0200 Subject: [PATCH] server: Fix stop mode. Do not try to unmap the audio file twice. --- vss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vss.c b/vss.c index e21a1ff4..7b84dcf5 100644 --- a/vss.c +++ b/vss.c @@ -230,11 +230,13 @@ static void vss_eof(void) struct timeval now; char *tmp; + if (!map) + return; if (mmd->new_vss_status_flags & VSS_NOMORE) mmd->new_vss_status_flags = VSS_NEXT; gettimeofday(&now, NULL); tv_add(&mmd->afd.afhi.eof_tv, &now, &eof_barrier); - munmap(map, mmd->size); + para_munmap(map, mmd->size); map = NULL; mmd->chunks_sent = 0; mmd->offset = 0; -- 2.39.5