mirror of https://github.com/deavmi/doap
Compare commits
2 Commits
2ead083ca8
...
c16b8a4b06
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | c16b8a4b06 | |
Tristan B. Velloza Kildaire | ae0235388a |
4
dub.json
4
dub.json
|
@ -4,10 +4,10 @@
|
||||||
],
|
],
|
||||||
"copyright": "Copyright © 2023, Tristan B. Velloza Kildaire",
|
"copyright": "Copyright © 2023, Tristan B. Velloza Kildaire",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"niknaks": ">=0.1.0"
|
"niknaks": ">=0.4.3"
|
||||||
},
|
},
|
||||||
"description": "CoAP library for D",
|
"description": "CoAP library for D",
|
||||||
"license": "LGPL v3.0",
|
"license": "LGPL v3.0",
|
||||||
"name": "doap",
|
"name": "doap",
|
||||||
"targetType": "library"
|
"targetType": "library"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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