Merge pull request #16 from doloopuntil/master

Fix server bug causing crash when recording enabled
This commit is contained in:
corrados 2020-03-24 16:25:28 +01:00 committed by GitHub
commit 49d789bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -104,7 +104,7 @@ win32 {
OTHER_FILES += android/AndroidManifest.xml OTHER_FILES += android/AndroidManifest.xml
} else:unix { } else:unix {
# we want to compile with C++11 # we want to compile with C++11
QMAKE_CXXFLAGS += -std=c++0x QMAKE_CXXFLAGS += -std=c++11
# we assume that stdint.h is always present in a Linux system # we assume that stdint.h is always present in a Linux system
DEFINES += HAVE_STDINT_H DEFINES += HAVE_STDINT_H

View file

@ -112,7 +112,8 @@ CJamSession::CJamSession(QDir recordBaseDir) :
vecptrJamClients (MAX_NUM_CHANNELS), vecptrJamClients (MAX_NUM_CHANNELS),
jamClientConnections() jamClientConnections()
{ {
const QFileInfo fi(sessionDir.absolutePath()); QFileInfo fi(sessionDir.absolutePath());
fi.setCaching(false);
if (!fi.exists() && !QDir().mkpath(sessionDir.absolutePath())) if (!fi.exists() && !QDir().mkpath(sessionDir.absolutePath()))
{ {
@ -296,7 +297,8 @@ QMap<QString, QList<STrackItem>> CJamSession::TracksFromSessionDir(const QString
*/ */
void CJamRecorder::Init(const CServer* server) void CJamRecorder::Init(const CServer* server)
{ {
const QFileInfo fi(recordBaseDir.absolutePath()); QFileInfo fi(recordBaseDir.absolutePath());
fi.setCaching(false);
if (!fi.exists() && !QDir().mkpath(recordBaseDir.absolutePath())) if (!fi.exists() && !QDir().mkpath(recordBaseDir.absolutePath()))
{ {