diff options
author | Mihai Moldovan <ionic@ionic.de> | 2023-02-22 09:06:26 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2023-02-22 09:06:31 +0100 |
commit | 30035fe8aa2d388b2493cafc4f5b17755b99a0f1 (patch) | |
tree | e70a2545e07aacca8bf6303a1af417512f6303eb /src/idle-monitor.vala | |
parent | a008c6c1e4f079332e69c02914612ce586a95ae0 (diff) | |
download | arctica-greeter-30035fe8aa2d388b2493cafc4f5b17755b99a0f1.tar.gz arctica-greeter-30035fe8aa2d388b2493cafc4f5b17755b99a0f1.tar.bz2 arctica-greeter-30035fe8aa2d388b2493cafc4f5b17755b99a0f1.zip |
src/arctica-greeter.vala: fix test mode.
32d28d7bf2646fc7a0008937034246fcc96dbc8a broke test mode by changing the
ArcticaGreeter class to a proper SingleInstance vala class. While meant
well, this created deadlocks, especially when using test mode, since
other code being called from the ArcticaGreeter constructor tries to
acquire references to ArcticaGreeter, which is still locked at that
point in time.
Fortunately, GObject has the constructed () function, that is almost
never used within vala, but still works and is called after the
constructor () (or, in vala parlance, construct), so we can move calling
functions that might require a constructed ArcticaGreeter to constructed
().
Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/42
Diffstat (limited to 'src/idle-monitor.vala')
0 files changed, 0 insertions, 0 deletions