1
0
Fork 0
mirror of https://github.com/besterprotocol/besterd synced 2023-12-13 21:00:32 +01:00
This commit is contained in:
Tristan B. Kildaire 2020-04-18 22:50:47 +02:00
parent 5929c83ce4
commit 8918c94ec5

View file

@ -430,17 +430,18 @@ private class BesterConnection : Thread
JSONValue payloadData = payloadBlock["data"];
/* Lookup the payloadType handler */
MessageHandler chosenHandler;
for(uint i = 0; i < server.handlers.length; i++)
{
if(cmp(server.handlers[i].getPluginName(), payloadType) == 0)
{
chosenHandler = server.handlers[i];
break;
}
}
MessageHandler chosenHandler;
for(uint i = 0; i < server.handlers.length; i++)
{
if(cmp(server.handlers[i].getPluginName(), payloadType) == 0)
{
chosenHandler = server.handlers[i];
break;
}
}
/* TODO: Continue here */
return dispatchStatus;