projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
35f1fc3
)
server: Fix stop mode.
author
Andre Noll
<maan@systemlinux.org>
Sat, 12 Apr 2008 11:02:47 +0000
(13:02 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 12 Apr 2008 11:02:47 +0000
(13:02 +0200)
Do not try to unmap the audio file twice.
vss.c
patch
|
blob
|
history
diff --git
a/vss.c
b/vss.c
index e21a1ff4fd13a715fc465c2c2758f72961856aa3..7b84dcf5db24dcf3128be1e5453a45f01913f94f 100644
(file)
--- 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;