mirror of https://github.com/deavmi/doap
Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | 61e8d51207 | |
Tristan B. Velloza Kildaire | c16b8a4b06 | |
Tristan B. Velloza Kildaire | ae0235388a |
|
@ -26,6 +26,7 @@ jobs:
|
|||
- name: Install Doveralls (code coverage tool)
|
||||
run: |
|
||||
dub fetch doveralls
|
||||
sudo apt update
|
||||
sudo apt install libcurl4-openssl-dev
|
||||
|
||||
- name: 'Build & Test'
|
||||
|
|
4
dub.json
4
dub.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue