mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
timeout_add_once() didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2783 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
15eaa7cc88
commit
9c038783a4
@ -108,7 +108,8 @@ int perl_timeout_add(int msecs, SV *func, SV *data, int once)
|
||||
rec = g_new0(PERL_SOURCE_REC, 1);
|
||||
perl_source_ref(rec);
|
||||
|
||||
rec->script = script;
|
||||
rec->once = once;
|
||||
rec->script = script;
|
||||
rec->func = perl_func_sv_inc(func, pkg);
|
||||
rec->data = SvREFCNT_inc(data);
|
||||
rec->tag = g_timeout_add(msecs, (GSourceFunc) perl_source_event, rec);
|
||||
@ -131,6 +132,7 @@ int perl_input_add(int source, int condition, SV *func, SV *data, int once)
|
||||
rec = g_new0(PERL_SOURCE_REC, 1);
|
||||
perl_source_ref(rec);
|
||||
|
||||
rec->once = once;
|
||||
rec->script =script;
|
||||
rec->func = perl_func_sv_inc(func, pkg);
|
||||
rec->data = SvREFCNT_inc(data);
|
||||
|
Loading…
Reference in New Issue
Block a user