Unified · Split
| @@ -563,7 +563,10 @@ err: · 562 unmodified lines | ||
| 563 | 563 | static void |
| 564 | 564 | connected(RTMP *r, int ok, Amf0 *a[NumCb], void *) |
| 565 | 565 | { |
| 566 | − sendp(r->c, ok ? nil : smprint("%A", a[CbResponse])); | |
| 566 | + if(strcmp(a[CbCommand]->str, "_result") != 0) | |
| 567 | + sendp(r->c, smprint("expected '_result', got %#q", a[CbCommand]->str)); | |
| 568 | + else | |
| 569 | + sendp(r->c, ok ? nil : smprint("%A", a[CbResponse])); | |
| 567 | 570 | } |
| 568 | 571 | |
| 569 | 572 | static int |