Merge branch 'master' into feature/options_full

This commit is contained in:
Tristan B. Velloza Kildaire 2023-10-15 17:04:55 +02:00
commit 5600836d2a
2 changed files with 8 additions and 3 deletions

View File

@ -4,10 +4,10 @@
],
"copyright": "Copyright © 2023, Tristan B. Velloza Kildaire",
"dependencies": {
"niknaks": ">=0.1.0"
"niknaks": ">=0.4.3"
},
"description": "CoAP library for D",
"license": "LGPL v3.0",
"name": "doap",
"targetType": "library"
}
}

View File

@ -132,7 +132,12 @@ public class CoapClient
// If none was available for re-use then find next available
// ... 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);
return newMid;