Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    289

    Solved [PluginSDK] Error 1796(0x0704), Explanation please. Bug?

    I've getting the mentioned error above, when i call "requestClientVariables", immediatly after the connection to the server is established.

    The function is called within a plugin, when the event "onConnectStatusChange" appears with "STATUS_CONNECTION_ESTABLISHED".
    Because of the fully established connection, all informations have to be accessible, so i think this is a bug.

    If this is not a bug, can someone please explain this situation to me, so that i can fix this.

  2. #2
    Join Date
    June 2008
    Location
    Krün, Germany
    Posts
    510
    This does not look like a bug.

    Explanation:
    Error 704 is ERROR_currently_not_possible. If this error is returned by requestClientVariables, it means there is already such a request in progress.

    Normal execution would be:
    * requestClientVariables (start request) => ERROR_ok
    * onUpdateClientEvent (notification that request has finished)

    (Add some printf to ts3plugin_onUpdateClientEvent to verify)

    Now if you request more than once before the first request has finished:
    * requestClientVariables => ERROR_ok
    * requestClientVariables => ERROR_currently_not_possible
    * onUpdateClientEvent
    * requestClientVariables => ERROR_ok (now you are allowed again)
    ...

    Of course assuming requesting twice on the same clientID...

    Now your plugin is probably calling requestClientVariables for the first time (and gets ERROR_ok as return value). A bit later, but before your request has finished, the client will call requestClientVariables another time (in the code when own client is selected after login, called with a small timer after onConnectStatusChange with STATUS_CONNECTION_ESTABLISHED, so this happens after your call). Then this requestClientVariables will return the error and it gets reported to the client log. However, the client will recover as onUpdateClientEvent will arrive soon anyways in response to the plugins request. So actually the error can be ignored. Thus I removed the log warning for ERROR_currently_not_possible in the client.

    So what should you do in your plugin code? Most probably nothing, as *your* request in this example is fine. If your request should return ERROR_currently_not_possible, you can just ignore it and wait for the soon incoming onUpdateClientEvent as reply to another request (may it be from the client or another plugin).

    Sorry for the wall of text. :-)

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    289
    Thanks PeterS,

    that's exactly, what i need to know.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Explanation Channel Join Power
    By mich356c in forum Permission System
    Replies: 1
    Last Post: May 7th, 2013, 07:25 AM
  2. [PLUGINSDK] requestClientSetWhisperList -> no error -> no whisper
    By kubax in forum Client Plugins / Lua Scripts
    Replies: 1
    Last Post: November 8th, 2011, 03:56 PM
  3. Need explanation (server shutdown)
    By karimali831 in forum Linux / FreeBSD
    Replies: 4
    Last Post: May 11th, 2010, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •