summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-11-12 20:19:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-11-12 20:19:25 (GMT)
commit0194351c3401df90ab8f7cffb0d40968fb4c31ad (patch)
treeeacc2d17769cf91685cdbe3c33ea789fb81fa01b /src/analysis/disass
parent771f21b9d5dd2b394359304a660418bbc84befda (diff)
Provided a way to wait for analysis endings without signals.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/disassembler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c
index 976ef11..7a066fc 100644
--- a/src/analysis/disass/disassembler.c
+++ b/src/analysis/disass/disassembler.c
@@ -706,7 +706,9 @@ void disassemble_binary(GLoadedBinary *binary, GBufferCache **cache, disassembly
g_object_unref(G_OBJECT(format));
disass = g_delayed_disassembly_new(binary, *cache);
- g_signal_connect(disass, "work-completed", G_CALLBACK(ack), binary);
+
+ if (ack != NULL)
+ g_signal_connect(disass, "work-completed", G_CALLBACK(ack), binary);
queue = get_work_queue();
g_work_queue_schedule_work(queue, G_DELAYED_WORK(disass), DEFAULT_WORK_GROUP);