mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-27 22:22:36 +02:00
2018-01-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in rdlogmanager(1) that caused segfaults under Windows.
This commit is contained in:
parent
43ca6e30cc
commit
bd532a409d
@ -16580,3 +16580,6 @@
|
||||
data to a log to remove voice track transitions.
|
||||
2018-01-10 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compiler warnings.
|
||||
2018-01-10 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed bugs in rdlogmanager(1) that caused segfaults under
|
||||
Windows.
|
||||
|
@ -61,11 +61,20 @@ bool RDLogLock::tryLock(QString *username,QString *stationname,
|
||||
QHostAddress *addr)
|
||||
{
|
||||
bool ret=false;
|
||||
#ifdef WIN32
|
||||
QString guid=RDLogLock::makeGuid("windows");
|
||||
#else
|
||||
QString guid=RDLogLock::makeGuid(lock_station->name());
|
||||
#endif // WIN32
|
||||
|
||||
#ifdef WIN32
|
||||
*username="windows";
|
||||
*stationname="windows";
|
||||
#else
|
||||
*username=lock_user->name();
|
||||
*stationname=lock_station->name();
|
||||
addr->setAddress(lock_station->address().toString());
|
||||
#endif // WIN32
|
||||
|
||||
if(RDLogLock::tryLock(username,stationname,addr,lock_log_name,guid)) {
|
||||
lock_timer->start(RD_LOG_LOCK_TIMEOUT/2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user