Skip to content

Commit

Permalink
Fix multiple instance database reload bug - single fix for V3.10c
Browse files Browse the repository at this point in the history
  • Loading branch information
billforsternz committed Nov 4, 2018
1 parent 2230073 commit 0824848
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install/tarrasch.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[Setup]
AppName=Tarrasch Chess GUI
AppVerName=Tarrasch Chess GUI V3.10b-g-Windows
AppVerName=Tarrasch Chess GUI V3.10c-g-Windows
AppPublisher=Triple Happy Ltd.
AppPublisherURL=http://www.triplehappy.com
AppSupportURL=http://www.triplehappy.com
Expand Down
2 changes: 1 addition & 1 deletion src/Appdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "wx/wx.h"
#include "Portability.h"

#define MASTER_VERSION_BASE "V3.10b" //add asterisk prefix between releases
#define MASTER_VERSION_BASE "V3.10c" //add asterisk prefix between releases

//#define USING_KINGBASE
// no suffix indicates default .tdb is kingbase
Expand Down
3 changes: 2 additions & 1 deletion src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ wxMutex *WaitForWorkerThread( const char *title )

wxMutex *DontWaitForWorkerThread()
{
the_database->kill_background_load = true;
if( the_database )
the_database->kill_background_load = true;
s_mutex_tiny_database.TryLock();
wxSafeYield();
s_mutex_tiny_database.Unlock();
Expand Down

0 comments on commit 0824848

Please sign in to comment.