Only require the IP and PORT in the config.ini if we will use them
This commit is contained in:
@@ -1396,8 +1396,6 @@ def put_read_config(MyDriver):
|
||||
txt += [' if { [dict exists $v "driver"] } {']
|
||||
txt += [' if { [dict get $v "driver"] == "%s" } {' % MyDriver['name']]
|
||||
txt += [' if { [dict get $v enabled] } {']
|
||||
txt += [' set IP [dict get $v ip]']
|
||||
txt += [' set PORT [dict get $v port]']
|
||||
txt += [' set name [dict get $v name]']
|
||||
txt += [' if { [dict exists $v "asyncqueue"] } {']
|
||||
txt += [' set asyncqueue [dict get $v "asyncqueue"]']
|
||||
@@ -1413,6 +1411,8 @@ def put_read_config(MyDriver):
|
||||
txt += [' }']
|
||||
txt += [' }']
|
||||
txt += [' set asyncqueue ${name}_queue']
|
||||
txt += [' set IP [dict get $v ip]']
|
||||
txt += [' set PORT [dict get $v port]']
|
||||
txt += [' MakeAsyncQueue ${asyncqueue} ${asyncprotocol} ${IP} ${PORT}']
|
||||
txt += [' if { [dict exists $v "timeout"] } {']
|
||||
txt += [' ${asyncqueue} timeout "[dict get $v "timeout"]"']
|
||||
|
||||
Reference in New Issue
Block a user