engine now connects to a port.
if port is free: no other engine is running.
if port is not free: other instance of engine is running.
Advantage:
- simpler and unambiguous way of detecting this
- the database 'lock' is still set. if no other instance of bots-engine is
running and database-lock is set: previous instance has ended in wrong way.
In this case the integrity of the database is checked; if OK do a crash
recovery.
- code is much clearer and simpler
- simpler GUI: 'unlock database/crash recovery' in GUI is not needed anymore.
Note: this change is independent from use of jobqueue-server.
Original issue reported on code.google.com by hjebb...@gmail.com on 24 Sep 2012 at 11:39
Original issue reported on code.google.com by
hjebb...@gmail.com
on 24 Sep 2012 at 11:39