minidlna: update to 1.1.6-git
[feed/packages.git] / multimedia / minidlna / patches / 999-03-make-sure-the-database-is-closed-after-scanning.patch
1 Author: BenoƮt Knecht <benoit.knecht@fsfe.org>
2 Description: Make sure the database is closed after scanning
3 Updated: 2015-03-01
4
5 --- a/minidlna.c
6 +++ b/minidlna.c
7 @@ -352,6 +352,7 @@ rescan:
8 open_db(&db);
9 if (*scanner_pid == 0) /* child (scanner) process */
10 {
11 + open_db(&db);
12 start_scanner();
13 sqlite3_close(db);
14 log_close();
15 @@ -365,6 +366,7 @@ rescan:
16 }
17 #else
18 start_scanner();
19 + sqlite3_close(db);
20 #endif
21 }
22 }