Skip to content
  • Peter Kümmel's avatar
    Set parent of internal server objects · 64927e04
    Peter Kümmel authored
    
    
    After moving the websocket server into another thread
    current code doesn't work because then the QTcpServer/QSslServer
    objects reside in a different thread:
    "QWarning: QObject: Cannot create children for a parent that is in a different thread."
    
    QObject::moveToThread(QThread*) also moves QObjects's children, therefore the
    internal server objects need to be children of QWebSocketServer.
    
    Change-Id: Ic7e8a564cd87400a4ab7258e3799157ed359c098
    Reviewed-by: default avatarLiang Qi <liang.qi@theqtcompany.com>
    Reviewed-by: default avatarAlex Blasche <alexander.blasche@theqtcompany.com>
    64927e04