[gnome-games] libretro: Fix a missing async callback
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] libretro: Fix a missing async callback
- Date: Sun, 26 Feb 2017 07:09:38 +0000 (UTC)
commit 66b2625cec67f2f8d72a1a197d36e7502f71909e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Feb 26 08:00:27 2017 +0100
libretro: Fix a missing async callback
Add a missing callback before a yield in LibretroGameSource.each_game(),
avoiding to stop loading games prematurily.
plugins/libretro/src/libretro-game-source.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/libretro/src/libretro-game-source.vala b/plugins/libretro/src/libretro-game-source.vala
index 774cb3e..eaf1c2b 100644
--- a/plugins/libretro/src/libretro-game-source.vala
+++ b/plugins/libretro/src/libretro-game-source.vala
@@ -13,6 +13,8 @@ public class Games.LibretroGameSource : Object, GameSource {
foreach (var core_descriptor in descriptors) {
var game = game_for_core_descriptor (core_descriptor);
callback (game);
+
+ Idle.add (each_game.callback);
yield;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]