Skip to content

Commit

Permalink
Create client ID after configuring log settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
AYMENJD committed Oct 15, 2024
1 parent 54b7a32 commit daaed61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/tdjson/tdjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ func NewTdJson(create_client bool, verbosity int, log_file string) *TdJson {
instance := TdJson{}

if create_client {
instance.ClientID = C.td_create_client_id()
if log_file != "" {
instance.Execute(utils.UnsafeMarshal(
utils.MakeObject(
Expand All @@ -40,6 +39,8 @@ func NewTdJson(create_client bool, verbosity int, log_file string) *TdJson {
},
),
))

instance.ClientID = C.td_create_client_id()
}

return &instance
Expand Down

0 comments on commit daaed61

Please sign in to comment.