mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Fix RSA signing
This commit is contained in:
1 parent
567963b034
commit
c30afffcee
4 files changed
+1165
-1213
No files matched your search
+3
-1
@@ -157,7 +157,9 @@ void mg_mdash_init(struct mg_mgr *mgr) {
|
||||
|
||||
void mg_mdash_poll(struct mg_mgr *mgr) {
|
||||
static uint64_t timer = 0;
|
||||
if (mg_mdash_conn == NULL && mg_timer_expired(&timer, 1000, mg_millis())) {
|
||||
// No RPC handlers means mdash was never set up, or mg_mdash_free() ran
|
||||
if (mg_mdash_conn == NULL && mgr->rpcs != NULL &&
|
||||
mg_timer_expired(&timer, 1000, mg_millis())) {
|
||||
MG_INFO(("Connecting to %s", MG_MDASH_URL));
|
||||
mg_mdash_conn = mg_ws_connect(mgr, MG_MDASH_URL, mg_mdash_fn, NULL,
|
||||
"Origin: %s\r\n"
|
||||
|
||||
Reference in new issue
Block a user