File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ namespace ToxVapi {
8
8
private const string TOX_SAVE = " Bot.tox" ;
9
9
10
10
private Tox handle;
11
- private Options options;
12
11
13
12
private bool connected = false ;
14
13
@@ -22,19 +21,19 @@ namespace ToxVapi {
22
21
ToxCore . Version . PATCH
23
22
);
24
23
25
- this . options = Options () {
24
+ var options = Options () {
26
25
ipv6_enabled = true ,
27
26
udp_enabled = true ,
28
27
proxy_type = ProxyType . NONE
29
28
};
30
29
31
30
// Load/Create the Tox_save.
32
31
if (FileUtils . test (this . TOX_SAVE , FileTest . EXISTS )) {
33
- FileUtils . get_data (this . TOX_SAVE , out this . options. savedata_data);
34
- this . options. savedata_type = SaveDataType . TOX_SAVE ;
32
+ FileUtils . get_data (this . TOX_SAVE , out options. savedata_data);
33
+ options. savedata_type = SaveDataType . TOX_SAVE ;
35
34
}
36
35
37
- this . handle = new Tox (this . options, null );
36
+ this . handle = new Tox (options, null );
38
37
this . bootstrap ();
39
38
Timeout . add (handle. iteration_interval (), () = > {
40
39
handle. iterate ();
You can’t perform that action at this time.
0 commit comments