mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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,6 +108,7 @@ int perl_timeout_add(int msecs, 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);
|
||||
@ -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