Skip to content

Commit 9d8748e

Browse files
authored
Merge pull request #3 from cdebost/bug/missing-await
Add missing await statement to example & test
2 parents e57ef06 + fd5410a commit 9d8748e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const server = new StreamingServer({
2626

2727
const run = async () => {
2828
try {
29-
server.start();
29+
await server.start();
3030
} catch (e) {
3131
console.error(e);
3232
}
@@ -61,4 +61,4 @@ Consume that stream from your favourite RTSP Client:
6161
* Stability
6262
* Authorisation
6363
* RTP interleaved in RTSP (RTP over RTSP)
64-
* Hooks for events when streams are published / consumed
64+
* Hooks for events when streams are published / consumed

test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const server = new StreamingServer({
1010

1111
const run = async () => {
1212
try {
13-
server.start();
13+
await server.start();
1414
} catch (e) {
1515
console.error(e);
1616
}
1717
}
1818

19-
run();
19+
run();

0 commit comments

Comments
 (0)