Compare commits
2 Commits
2eaaceba70
...
0cfe1ef91b
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 0cfe1ef91b | |
Shadowfacts | 5849412610 |
|
@ -178,7 +178,7 @@ public extension Promise {
|
||||||
addHandler { (parentResult) in
|
addHandler { (parentResult) in
|
||||||
let newPromise = mapper(parentResult)
|
let newPromise = mapper(parentResult)
|
||||||
newPromise.addHandler(next.resolve)
|
newPromise.addHandler(next.resolve)
|
||||||
newPromise.addHandler(next.reject)
|
newPromise.addCatcher(next.reject)
|
||||||
}
|
}
|
||||||
addCatcher(next.reject)
|
addCatcher(next.reject)
|
||||||
return next
|
return next
|
||||||
|
|
|
@ -238,6 +238,7 @@ def parse_frames(
|
||||||
_encryption::size(1),
|
_encryption::size(1),
|
||||||
_unsynchronized::size(1),
|
_unsynchronized::size(1),
|
||||||
_has_data_length_indicator::size(1),
|
_has_data_length_indicator::size(1),
|
||||||
|
_unused::size(1),
|
||||||
rest::binary
|
rest::binary
|
||||||
>>,
|
>>,
|
||||||
tag_length_remaining,
|
tag_length_remaining,
|
||||||
|
@ -411,7 +412,7 @@ There are also the many, many frames which we have not specifically handled. Eve
|
||||||
```elixir
|
```elixir
|
||||||
def decode_frame(id, frame_size, rest) do
|
def decode_frame(id, frame_size, rest) do
|
||||||
cond do
|
cond do
|
||||||
Regex.match?(~r/^T[0-9A-Z]$/, id) ->
|
Regex.match?(~r/^T[0-9A-Z]+$/, id) ->
|
||||||
decode_text_frame(id, frame_size, rest)
|
decode_text_frame(id, frame_size, rest)
|
||||||
|
|
||||||
id in @declared_frame_ids ->
|
id in @declared_frame_ids ->
|
||||||
|
|
Loading…
Reference in New Issue