mirror of https://github.com/deavmi/doap
Client
- `newMid2()` now uses the updated `findNextFree(..., ...)` from niknaks
This commit is contained in:
parent
ae0235388a
commit
c16b8a4b06
|
@ -132,7 +132,12 @@ public class CoapClient
|
||||||
|
|
||||||
// If none was available for re-use then find next available
|
// If none was available for re-use then find next available
|
||||||
// ... free and use that (also don't forget to register it)
|
// ... free and use that (also don't forget to register it)
|
||||||
ushort newMid = findNextFree(inUse);
|
ushort newMid;
|
||||||
|
bool gotAvailable = findNextFree(inUse, newMid);
|
||||||
|
|
||||||
|
// FIXME: Add a thing which does something
|
||||||
|
// ... if `gotAvailable` is false
|
||||||
|
|
||||||
this.mids[newMid] = StopWatch(AutoStart.yes);
|
this.mids[newMid] = StopWatch(AutoStart.yes);
|
||||||
|
|
||||||
return newMid;
|
return newMid;
|
||||||
|
|
Loading…
Reference in New Issue