diff options
Diffstat (limited to 'src/WebSocketSession.cc')
| -rw-r--r-- | src/WebSocketSession.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WebSocketSession.cc b/src/WebSocketSession.cc index 83a3f7f9..d51e789c 100644 --- a/src/WebSocketSession.cc +++ b/src/WebSocketSession.cc @@ -290,8 +290,8 @@ void WebSocketSession::addTextMessage(const std::string& msg, bool delayed) auto e = getDownloadEngine(); auto cuid = command_->getCuid(); auto c = make_unique<TextMessageCommand>(cuid, command_->getSession(), msg); - e->addCommand(make_unique<DelayedCommand>(cuid, e, std::chrono::seconds(1), - std::move(c), false)); + e->addCommand( + make_unique<DelayedCommand>(cuid, e, 1_s, std::move(c), false)); return; } |
