From: Andre Noll Date: Sat, 12 Apr 2008 11:02:47 +0000 (+0200) Subject: server: Fix stop mode. X-Git-Tag: v0.3.3~87 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d655d370c0051df25b07611704c4fa20a54534ba server: Fix stop mode. Do not try to unmap the audio file twice. --- 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;